users@glassfish.java.net

Re: Accessing a servlet url without a web browser

From: <glassfish_at_javadesktop.org>
Date: Sat, 12 Apr 2008 15:04:08 PDT

Glassfish is HTTP compliant and thus serves any well formed HTTP-request. No matter whether it is issued via a browser, telnet or any application using sockets.

Could it be that you are simply omitting the space character betweeen "GET" and "/"?

See HTTP 1.1 spec 5.1 (RFC 2116) section 5.1:
Request-Line = Method SP Request-URI SP HTTP-Version CRLF

You would have to use a first line like this:

GET /MyServlet HTTP/1.1

To better understand your problem and how to reproduce the behaviour in question it would be helpful if you could post the relevant code fragment that is responsible for issuing the request to Glassfish.

--
Wolfram Rittmeyer
[Message sent by forum member 'writtmeyer' (writtmeyer)]
http://forums.java.net/jive/thread.jspa?messageID=268928