Hi.  I'm having a problem very similar to this previous post:

http://archives.java.sun.com/cgi-bin/wa?A2=ind0002&L=servlet-interest&P=R293
47

I couldn't find the follow-up to this post - if there was one.

Here's some text from a telnet session from a Linux box back to my Win2k
machine - observe what happens:

jgrady@cs:~$ telnet 172.26.0.95 80
Trying 172.26.0.95...
Connected to 172.26.0.95.
Escape character is '^]'.
GET /jgrady/servlet/PurchaseOrderServlet?&foo=bar HTTP/1.0

HTTP/1.1 200 OK
Date: Fri, 12 Jan 2001 16:36:47 GMT
Server: Apache/1.3.14 (Win32) mod_jk
Servlet-Engine: Tomcat Web Server/3.2.1 (JSP 1.1; Servlet 2.2; Java 1.3.0;
Windows
 2000 5.0 x86; java.vendor=Sun Microsystems Inc.)
Connection: close
Content-Type: text/plain

server got:
bar
Connection closed by foreign host.

//So that's what it's supposed to do.  Check out what happens when I try to
POST...

jgrady@cs:~$ telnet 172.26.0.95 80
Trying 172.26.0.95...
Connected to 172.26.0.95.
Escape character is '^]'.
POST /jgrady/servlet/PurchaseOrderServlet HTTP/1.0
content-length: 8

&foo=bar
HTTP/1.1 500 Internal Server Error
Date: Fri, 12 Jan 2001 16:38:06 GMT
Server: Apache/1.3.14 (Win32) mod_jk
Connection: close
Content-Type: text/html; charset=iso-8859-1

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<HTML><HEAD>
<TITLE>500 Internal Server Error</TITLE>
</HEAD><BODY>
<H1>Internal Server Error</H1>
The server encountered an internal error or
misconfiguration and was unable to complete
your request.<P>
Please contact the server administrator,
 [EMAIL PROTECTED] and inform them of the time the error occurred,
and anything you might have done that may have
caused the error.<P>
More information about this error may be available
in the server error log.<P>
<HR>
<ADDRESS>Apache/1.3.14 Server at 127.0.0.1 Port 80</ADDRESS>
</BODY></HTML>
Connection closed by foreign host.

So now I'm confused as to why this is happening.  my doPost() method in my
servlet is defined as
doPost() {  doGet(request, response); }  and you all saw that doGet()
worked...

If I do a POST with no content, it says "server got: null", which is fine.
BUT, if I telnet to port 8080 and send the POST to Tomcat directly, then it
lets me type in the POST line and the content-length line, but then doesn't
allow me to enter any content.  It's supposed to let me skip a line and type
content, right?  It just prints "server got: null".  I'm not a HTTP guru,
but I think that behavoir might be incorrect, unless I'm doing something
silly...

Again, my platform:
Apache 1.3.14
Tomcat 3.2.1
JDK 1.3.0
Windows 2000

Any comments are greatly appreciated.  If you'd like more info on my
configuration, please don't hesitate to ask.

____________________________
Jeff Grady
Viridien Technologies
"Next Generation eTechnologists"
www.viridien.com

978.929.9502 x113
85 Swanson Rd.
Boxborough, MA 01719

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to