Re: UnknownHostException



On Fri, 28 Sep 2007 03:47:43 -0000, manoj baba <dmanojbaba@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

URL url = new URL("http://www.wickedlysmart.com/HeadFirst/
HeadFirstJava/HeadFirstJavaIndex.html");

It seems odd to specify a specific document, then throw it away and
take just the host "www.wickedlysmart.com".

Is your server prepared to start a raw socket on port 80?

I suspect instead your server is waiting for a GET or POST.

See http://mindprod.com/applet/fileio.html

for how to write the code for that.

See also http://mindprod.com/jgloss/cgi.html
http://mindprod.com/jgloss/http.html
http://mindprod.com/products1.html#HTTP

--
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com
.



Relevant Pages

  • Re: Difference between "nslookup" and "whois" ?
    ... 'nslookup' can also do a reverse lookup to return back from your DNS server the IP name if you enter an IP address. ... A 'whois' only lookup won't tell you the IP address of a domain. ... If it is providing an IP address, that comes from whatever is currently assigned as your DNS server (unless it has an option to configure a specify DNS server). ... Each host has a different IP address so, yes, you need to specify the hostname in an IP name lookup to get an IP address for it. ...
    (microsoft.public.windowsxp.network_web)
  • [HPADM] Re: Restricted IP for SSH connections
    ... It'll allow you to specify specific ... hosts/ranges/users to allow to access services on a host. ... Do you Yahoo!? ... To subscribe/unsubscribe to this list, ...
    (HP-UX-Admin)
  • Re: Cisco PIX STATIC Entries Fail To Work
    ... Not using PAT in this scenario. ... specify just a host in the static translation. ...
    (comp.security.firewalls)
  • Re: Is there any point to full host names in /etc/hosts ?
    ... Specify an IP address to return for any host in the given ... Note that /etc/hosts and DHCP leases override ... server to avoid banner ads. ... it's important to be careful to avoid blocking useful domains that also host adverts. ...
    (comp.os.linux.networking)
  • Re: event arguments
    ... > It seems odd to specify a convention which only becomes useful several ...
    (microsoft.public.dotnet.languages.csharp)