• 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:
  • Tim Cooke
  • Campbell Ritchie
  • paul wheaton
  • Ron McLeod
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Piet Souris
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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic