Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 24th, 2005, 12:45 AM
Yef
Guest
 
Posts: n/a
Default HTTP GET not working ...why?

I've got a program that accesses the following URL
with a GET command but the server responds with 400.
Is there something unusual about this site?

Thanks.

http://www.nasa.gov/externalflash/An..._noaccess.html

  #2  
Old July 24th, 2005, 12:45 AM
EventHelix.com
Guest
 
Posts: n/a
Default Re: HTTP GET not working ...why?

The web server might be rejecting the program because of
unknown browser type. The site is flash based so it must be
checking for browser compatibility.

I would recommend using Ethereal to check the difference
between the HTTP get sent by a regular browser and your
program.

Deepa
--
EventStudio 2.5 - http://www.EventHelix.com/EventStudio
Generate protocol sequence diagrams in PDF and MS Word

  #3  
Old July 24th, 2005, 12:45 AM
Barry Margolin
Guest
 
Posts: n/a
Default Re: HTTP GET not working ...why?

In article <1110420301.779955.185330@o13g2000cwo.googlegroups .com>,
"Yef" <e97y@yahoo.com> wrote:
[color=blue]
> I've got a program that accesses the following URL
> with a GET command but the server responds with 400.
> Is there something unusual about this site?
>
> Thanks.
>
> http://www.nasa.gov/externalflash/An..._noaccess.html[/color]

Are you sending the "Host: www.nasa.gov" header? I get a 400 response
if I leave it out, but the GET works when I put it in.

The server is presumably doing virtual hosting, so it needs to know the
hostname of the URL in order to find the proper page.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
  #4  
Old July 24th, 2005, 12:45 AM
Yef
Guest
 
Posts: n/a
Default Re: HTTP GET not working ...why?

I wasn't sending Host.

Incidentally, I've got another bizarre host:

http://www.oreilly.com/openbook/webclient/ch03.html

It sends back HTML which doesn't look like what later
appears in the browser, e.g. title= MakeZine.com

Do you have any idea what's going on with that?
Thanks.

  #5  
Old July 24th, 2005, 12:45 AM
Adrienne
Guest
 
Posts: n/a
Default Re: HTTP GET not working ...why?

Gazing into my crystal ball I observed "Yef" <e97y@yahoo.com> writing in
news:1110424562.187552.176510@l41g2000cwc.googlegr oups.com:
[color=blue]
> I wasn't sending Host.
>
> Incidentally, I've got another bizarre host:
>
> http://www.oreilly.com/openbook/webclient/ch03.html
>
> It sends back HTML which doesn't look like what later
> appears in the browser, e.g. title= MakeZine.com
>
> Do you have any idea what's going on with that?
> Thanks.
>[/color]

Sounds like you might have been hijacked. If you're on a windows system,
take a look at your hosts file and see if there is anything suspicious in
it. See <http://www.mvps.org/winhelp2002/hosts.htm> for more info. Also
run a spyware checker, Spybot Search & Destroy is very good
<http://security.kolla.de/>, and I would also run a virus check.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
  #6  
Old July 24th, 2005, 12:46 AM
Yef
Guest
 
Posts: n/a
Default Re: HTTP GET not working ...why?

Nope, that's not it. Incidentally does Windows have an equivalent
to Linux's /etc/hosts.deny?

Thanks.

  #7  
Old July 24th, 2005, 12:46 AM
Barry Margolin
Guest
 
Posts: n/a
Default Re: HTTP GET not working ...why?

In article <1110511503.759355.62070@o13g2000cwo.googlegroups. com>,
"Yef" <e97y@yahoo.com> wrote:
[color=blue]
> Nope, that's not it.[/color]

Please learn how to quote the message you're responding to with the new
Google. It's in an Options menu I think.

I just did:

telnet www.oreilly.com 80
GET /openbook/webclient/ch03.html HTTP/1.0
Host: www.oreilly.com

and the HTML it sent looked like it would produce the page I saw with my
browser. It began with:

HTTP/1.1 200 OK
Date: Fri, 11 Mar 2005 03:50:30 GMT
Server: Apache/1.3.33 (Unix) PHP/4.3.10 mod_perl/1.29
P3P: policyref="http://www.oreillynet.com/w3c/p3p.xml",CP="CAO DSP COR
CURa ADMa DEVa TAIa PSAa PSDa IVAa IVDa CONo OUR DELa PUBi OTRa IND PHY
ONL UNI PUR COM NAV INT DEM CNT STA PRE"
Last-Modified: Fri, 09 May 2003 19:30:53 GMT
ETag: "2fbbe-1b80d-3ebc01ed"
Accept-Ranges: bytes
Content-Length: 112653
Content-Type: text/html
X-Cache: MISS from www.oreilly.com
Connection: close

<HTML>
<HEAD>
<title>Web Client Programming with Perl: Chapter 3: Learning HTTP</title>
</head>
[color=blue]
> Incidentally does Windows have an equivalent
> to Linux's /etc/hosts.deny?[/color]

I don't think so, but I'm not a Windows expert.

--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
 

Bookmarks

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles