gabriele renzi
10/28/2003 8:47:00 PM
il Tue, 28 Oct 2003 13:08:15 -0700, Joe Johnson
<joejohnson1111@hotmail.com> ha scritto::
>error: getaddrinfo: Name or service not known
>nil
>
>I tried different pages that have subdirectories in the url,
>they all return me the same error.
>
>So it seems to know whenever my url isn't in the form
>of www.site.com, I get the error.
>
>Does anyone know how I can fix the problem? TIA!
I think you misunderstood how internet works :)
actually, the hostname is just
www.site.com and the /stuff is the local http index.
To work the way you are thinking about, and forget about the http
internals, use Net::HTTP , there is some doc in the pickaxe