Sign in to follow this  
supagu

HTTP GET not working !?

Recommended Posts

i made a HTTP request to a website: GET /index.htm HTTP/1.0 also tried: GET index.htm HTTP/1.0 i get an error back: 404 not found the request url index.htm was not found on this server but it does exist! www.blackcarbon.net is the website btw.

Share this post


Link to post
Share on other sites
The requests you are sending are not valid HTTP. If you look carefully at the error message returned by the server, it is an HTTP 400 - invalid request. The 404 is a side-effect error that is a result of the server not being configured correctly.

Your request should be one of the following:

GET http://www.blackcarbon.net/index.htm HTTP/1.0

Or:
GET /index.htm HTTP/1.1
Host: www.blackcarbon.net



Both work for me.

Share this post


Link to post
Share on other sites
okay cool, strange that this sort of request worked on another site i tried it on.. oh well cheers

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this