🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: retrieve a simple web page by knowing its URL

#4325
From: Remy Lebeau (TeamB)
Date: Thu, 10 Feb 2005 09:24
60 lines
2663 bytes
"Steve Aletto" <steve_alettoANTI@SPAMhotmail.com> wrote in message
news:420b1193@newsgroups.borland.com...

> 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.

Attempt #1:

    GET /stefboombastic/default.htm HTTP/1.1

    HTTP/1.1 400 Bad Request
    Content-Type: text/html
    Date: Thu, 10 Feb 2005 09:21:31 GMT
    Connection: close
    Content-Length: 39

    <h1>Bad Request (Invalid hostname)</h1>


Attempt #2:

    GET /stefboombastic/default.htm HTTP/1.1
    Host: 65.182.102.101

    HTTP/1.1 404 Not Found
    Date: Thu, 10 Feb 2005 09:24:27 GMT
    Content-Length: 1635
    Content-Type: text/html
    Server: Microsoft-IIS/6.0
    Set-Cookie: BrinksterServer=4
    X-Powered-By: ASP.NET

    [HTML saying the page could not be found]


Attempt #2:

    GET /stefboombastic/default.htm HTTP/1.1
    Host: www14.brinkster.com

    HTTP/1.1 200 OK
    Date: Thu, 10 Feb 2005 09:28:10 GMT
    Content-Length: 409
    Content-Type: text/html
    Last-Modified: Wed, 06 Sep 2000 20:29:42 GMT
    Accept-Ranges: bytes
    ETag: "7a8af62f4118c01:30225"
    Server: Microsoft-IIS/6.0
    Set-Cookie: BrinksterServer=3
    X-Powered-By: ASP.NET

    [HTML saying the page was downloaded properly]


Gambit
Technical Details
Message-ID: <420b278f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.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>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,474753b63a76f917
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com>
Newsgroups: borland.public.cppbuilder.internet.socket
References: <4209d747@newsgroups.borland.com> <420a530c@newsgroups.borland.com> <420b1193@newsgroups.borland.com>
Subject: Re: retrieve a simple web page by knowing its URL 
Date: Thu, 10 Feb 2005 01:24:41 -0800
Lines: 62
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1409
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409
NNTP-Posting-Host: 68.69.17.41
Message-ID: <420b278f$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1108027279 68.69.17.41 (10 Feb 2005 01:21:19 -0800)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!border1.nntp.dca.giganews.com!border2.nntp.dca.giganews.com!nntp.giganews.com!newspeer1.nwr.nac.net!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!news-in.nuthinbutnews.com!news-in.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail