|
|
|
|
||||||
| comp.info.servers.unix Web servers for UNIX platforms. |
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
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 |
|
Messages: n/a
Hébergeur: |
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 |
|
Messages: n/a
Hébergeur: |
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 |
|
|
|
#4 |
|
Messages: n/a
Hébergeur: |
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 *** |
|
|
|
#5 |
|
Messages: n/a
Hébergeur: |
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 *** |
|
|
|
#6 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#7 |
|
Messages: n/a
Hébergeur: |
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. |
|
|
|
#8 |
|
Messages: n/a
Hébergeur: |
Gazing into my crystal ball I observed "Yef" <e97y@yahoo.com> writing in
news:1110424562.187552.176510@l41g2000cwc.googlegr oups.com: > 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. > 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/win2002/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 |
|
|
|
#9 |
|
Messages: n/a
Hébergeur: |
Gazing into my crystal ball I observed "Yef" <e97y@yahoo.com> writing in
news:1110424562.187552.176510@l41g2000cwc.googlegr oups.com: > 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. > 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/win2002/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 |
|
|
|
#10 |
|
Messages: n/a
Hébergeur: |
Nope, that's not it. Incidentally does Windows have an equivalent
to Linux's /etc/hosts.deny? Thanks. |
|
|
|
#11 |
|
Messages: n/a
Hébergeur: |
Nope, that's not it. Incidentally does Windows have an equivalent
to Linux's /etc/hosts.deny? Thanks. |
|
|
|
#12 |
|
Messages: n/a
Hébergeur: |
In article <1110511503.759355.62070@o13g2000cwo.googlegroups. com>,
"Yef" <e97y@yahoo.com> wrote: > Nope, that's not it. 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> > Incidentally does Windows have an equivalent > to Linux's /etc/hosts.deny? 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 *** |
|
|
|
#13 |
|
Messages: n/a
Hébergeur: |
In article <1110511503.759355.62070@o13g2000cwo.googlegroups. com>,
"Yef" <e97y@yahoo.com> wrote: > Nope, that's not it. 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> > Incidentally does Windows have an equivalent > to Linux's /etc/hosts.deny? 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 *** |
|
![]() |
| Outils de la discussion | |
|
|