🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4326

Re: retrieve a simple web page by knowing its URL

#4326
From: Steve Aletto
Date: Thu, 10 Feb 2005 10:43
20 lines
1979 bytes
>> That's not enough as far as my tests could be worth. You
>> should specify "Accept: text/html", otherwise you'd get a
>> "406 Not Acceptable" error (the resource cannot be 
>> displayed).
>
> Not true.  In fact, I telnetted into the offending server and 
> sent no
> headers at all except for the Host, and it returned the page 
> as expected.

Yes, but you didn't send any header at all. If you send the 
header used by Stefano (with the right host), you'll get the 
error I reported. So, it's not enough to specify the host name 
instead of the IP address, you should specify also a proper 
"Accept" tag (or completely avoid that tag).

In other words, if you take Stefano's example and change only 
the host tag it won't work.

Steve. 
Technical Details
Message-ID: <420b3acf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <4209d747@newsgroups.borland.com> <420a530c@newsgroups.borland.com> <420b1193@newsgroups.borland.com> <420b278f$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,474753b63a76f917
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
Reply-To: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com>
From: "Steve Aletto" <steve_alettoANTI@SPAMhotmail.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4209d747@newsgroups.borland.com> <420a530c@newsgroups.borland.com> <420b1193@newsgroups.borland.com> <420b278f$1@newsgroups.borland.com>
Subject: Re: retrieve a simple web page by knowing its URL 
Date: Thu, 10 Feb 2005 11:43:31 +0100
Lines: 22
Organization: Steve Aletto
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
X-RFC2646: Format=Flowed; Original
NNTP-Posting-Host: 81.208.124.114
Message-ID: <420b3acf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108032207 81.208.124.114 (10 Feb 2005 02:43:27 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!proxad.net!fr.ip.ndsoftware.net!newsfeed.freenet.de!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail