473,405 Members | 2,287 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

HTTP GET not working ...why?

Yef
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

Jul 23 '05 #1
6 2055
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

Jul 23 '05 #2
In article <11**********************@o13g2000cwo.googlegroups .com>,
"Yef" <e9**@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, ba****@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Jul 23 '05 #3
Yef
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.

Jul 23 '05 #4
Gazing into my crystal ball I observed "Yef" <e9**@yahoo.com> writing in
news:11**********************@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/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
Jul 23 '05 #5
Yef
Nope, that's not it. Incidentally does Windows have an equivalent
to Linux's /etc/hosts.deny?

Thanks.

Jul 23 '05 #6
In article <11*********************@o13g2000cwo.googlegroups. com>,
"Yef" <e9**@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, ba****@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
Jul 23 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

9
by: vishal | last post by:
i have created one page in asp login.php on my pc it is working as http://localhost/index.php but when i access this page from other computer in network it is not working pls help me ...
2
by: GBud2004 | last post by:
Hi, I am having a strange problem. I have certain ASP pages that are wel tested and working in many places. But there is one server (window 2000) on which some of the asp pages do not work. I...
3
by: Dmitri Shvetsov | last post by:
Hi, Does somebody have a working project-example to show image on a Web Form writing the byte to a http stream and assigning the source of the image on the form to this url? I can't...
3
by: Matthew Louden | last post by:
The web server is running Windows Server 2003 Standard Edition, and it returns HTTP 404 error when running ASP.NET pages, but ASP pages are working fine. I also installed Visual Studio .NET, and...
8
by: Rod | last post by:
I have been working with ASP.NET 1.1 for quite a while now. For some reason, opening some ASP.NET applications we wrote is producing the following error message: "The Web server reported...
0
by: CFloyd | last post by:
I have a web service client that sends an XML string to the web service for processing. I alos have to add some headers to the post. I first establish the baseuri as === baseuri = new...
0
by: CFloyd | last post by:
I have a web service client that sends an XML string to the web service for processing. I alos have to add some headers to the post. I first establish the baseuri as === baseuri = new...
5
by: salvador | last post by:
I'm trying to create a function to return some values from a php script. The php script is returning the correct values if called from a browser window. However, the function that I'm using never...
7
by: =?Utf-8?B?YzY3NjIyOA==?= | last post by:
Hi all, I am trying to set this up using asp code and IIS configuration. But it seems not working. Here it is the way I am doing. In IIS I set up a virtual directory with secure communication, I...
4
by: vivekbhamdari123 | last post by:
hi www.sitename is not working but http://sitename is working if anybody can help me with this thanks in advance
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.