Jump to content
  • Advertisement
Sign in to follow this  
supagu

HTTP GET not working !?

This topic is 4518 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

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
Advertisement
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
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!