[I sent this to the users list on Friday - someone sent me email
 telling me I should send it to this group - sorry for the double
 post]

I just started using TomCat B5 using the builtin HTTPConnector.
When POST-ing a form, none of the name-value pairs of the
"Query string" make it through.

I found the below minor logic bug, and it now is working for me.

--- HttpRequestBase.java.orig   Fri May 18 16:36:30 2001
+++ HttpRequestBase.java        Fri May 18 16:39:40 2001
@@ -616,7 +616,7 @@
         if (semicolon >= 0)
             contentType = contentType.substring(0, semicolon).trim();
        if ("POST".equals(getMethod()) && (getContentLength() > 0)
-            && (this.stream == null)
+            && (this.stream != null)
            && "application/x-www-form-urlencoded".equals(contentType)) {
            try {
                 int max = getContentLength();

Reply via email to