Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Object not found 404  RSS feed

 
yogesh somavanshi
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • 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 ]
 
Peter den Haan
author
Ranch Hand
Posts: 3252
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!