🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: retrieve a simple web page by knowing its URL

#4465
From: Stefano Bonifazi
Date: Wed, 09 Feb 2005 16:58
36 lines
2432 bytes
YESSSSSSSS! :-) That worked :-)
 I don't know why my header did not work ... I "stole" it from Internet 
Explorer (using a my Server as stub :) )
 Anyway this new header works fine ..
Thank You very much,
 Best regards,
Stefano B.

P.S.
Your surname seems to be Italian :-)

"Steve Aletto" <steve_alettoANTI@SPAMhotmail.com> ha scritto nel messaggio 
news:420a0ff0@newsgroups.borland.com...
>> AnsiString Request="GET /stefboombastic/default.htm HTTP/1.1\r\n"
>>                    "Accept: image/gif, image/x-xbitmap, image/jpeg, 
>> image/pjpeg, application/x-shockwave-flash, application/vnd.ms-excel, 
>> application/vnd.ms-powerpoint, application/msword, */*\r\n"
>>                    "Accept-Language: it\r\n"
>>                    "Accept-Encoding: gzip, deflate\r\n"
>>                    "Host: "+IP+"\r\n"
>>                    "Connection: Keep-Alive\r\n"
>>                    "\r\n";
>
> There's something wrong with your Accept tag (I guess you didn't specify 
> text/html). The following works:
>
> AnsiString Request="GET /stefboombastic/default.htm HTTP/1.1\r\n"
>                    "Accept: text/html\r\n"
>                    "Accept-Language: it\r\n"
>                    "Accept-Encoding: gzip, deflate\r\n"
>                    "Host: " + ClientSocket1->Host + "\r\n"
>                    "Connection: Keep-Alive\r\n"
>                    "\r\n";
>
> Steve.
> 
Technical Details
Message-ID: <420a4119@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!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> <420a0ff0@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
From: "Stefano Bonifazi" <stefboombastic@email.it>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4209d747@newsgroups.borland.com> <420a0ff0@newsgroups.borland.com>
Subject: Re: retrieve a simple web page by knowing its URL 
Date: Wed, 9 Feb 2005 17:58:02 +0100
Lines: 38
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; Response
NNTP-Posting-Host: 212.141.200.33
Message-ID: <420a4119@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1107968281 212.141.200.33 (9 Feb 2005 08:58:01 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newsread.com!newsprint.newsread.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail