This week's book giveaway is in the Open Source Projects forum.
We're giving away four copies of Eclipse Collections Categorically: Level up your programming game and have Donald Raab on-line!
See this thread for details.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Object not found 404

 
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I m using sockets to connect to a particular host for eg say www.vanenbits.com .Then forming a get request for the socket I m wrirting into the socket .
The returned header part (contains the information about the resposemessage and response code with various other details).

But suppose u replace out.println("GET / HTTP/1.0"); in the above code with
out.println("GET /introduction.html HTTP/1.0");that is asking for the file intoroduction.html then the responsemessage returned in header part is HTTP/1.1 404 Not Found.
So why it is not able to find the given file,even though the file exists on the server.
Regards
Yogesh
[ April 25, 2002: Message edited by: yogesh somavanshi ]
 
author
Posts: 3252
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Must admit that I am somewhat mystified as well; perhaps an HTTP or Apache guru could help out. The server insists on an absolute URI in its GET request (try GET http://www.vanenburg.com/introduction.html instead of just /introduction.html). As far as I know this is normally only required with proxies.
- Peter
 
I am Arthur, King of the Britons. And this is a tiny ad:
Clean our rivers and oceans from home
https://www.kickstarter.com/projects/paulwheaton/willow-feeders
reply
    Bookmark Topic Watch Topic
  • New Topic