Afficher un message
Vieux 10/03/2005, 02h24   #5
Barry Margolin
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: HTTP GET not working ...why?

In article <1110420301.779955.185330@o13g2000cwo.googlegroups .com>,
"Yef" <e97y@yahoo.com> wrote:

> 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


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 ***
  Réponse avec citation
 
Page generated in 0,05284 seconds with 9 queries