that looks like a valid request, there most be something else in the
data sent over that breaks it
there is only one place where tomcat checks for this, its in the
Http11Processor
you should be able to turn on the debug to get the actual data that
tomcat is trying to parse
put
org.apache.coyote.http11.level = FINE
in logging to properties, and Tomcat will print out the data it is
trying to parse (see below)
MessageBytes protocolMB = request.protocol();
if (protocolMB.equals(Constants.HTTP_11)) {
http11 = true;
protocolMB.setString(Constants.HTTP_11);
} else if (protocolMB.equals(Constants.HTTP_10)) {
http11 = false;
keepAlive = false;
protocolMB.setString(Constants.HTTP_10);
} else if (protocolMB.equals("")) {
// HTTP/0.9
http09 = true;
http11 = false;
keepAlive = false;
} else {
// Unsupported protocol
http11 = false;
error = true;
// Send 505; Unsupported HTTP version
if (log.isDebugEnabled()) {
log.debug(sm.getString("http11processor.request.prepare")+
" Unsupported HTTP version \""+protocolMB+"\"");
}
response.setStatus(505);
}
Richard Sayre wrote:
Here is the exact String exported from the packet:
POST /test/sync/upload.jsp?username=test1 HTTP/1.1
Content-Type: text/xml
Content-Length: 4005
Connection: Keep-Alive
Expect: 100-continue
Host: 192.168.1.116
On Dec 5, 2007 2:29 PM, Richard Sayre <[EMAIL PROTECTED]> wrote:
The spacing seems to be ok. I request several pages using the C#
object. The only time I get that error is when I write some data to
the request before I get the response. Here is the request String:
POST /test/sync/upload.jsp?username=test1 HTTP/1.1
On Dec 5, 2007 2:17 PM, Dwebb <[EMAIL PROTECTED]> wrote:
Hi,
You might want to check the Request line in a tcp capture. We have run
into a problem recently with the new tomcat bundles that do very strict
checking of the request line.
It has to be formatted METHOD SPACE REQUEST_URI SPACE VERSION (ie
POST /test HTTP/1.1). if there are more than one space between the
elements you will get a 505 error.
see: http://issues.apache.org/bugzilla/show_bug.cgi?id=42750
They seem to ignore Appendix B of RFC1945
(http://tools.ietf.org/html/rfc1945#page-55)
Cheers
Danny
On Wed, 2007-12-05 at 14:02 -0330, Richard Sayre wrote:
I have a C Sharp Pocket PC application that is hitting a Tomcat web
server and getting some data from that server. With Tomcat 4.1 this
application is working fine, but since I upgraded to Tomcat 6 it
stopped working.
Most of the application works with Tomcat 6. When It does work here
is the scenario:
1. My C# app sends a request to /webapp/getCustomers.jsp?custId=1
through "POST"
2. The jsp servlet gets some XML from the model and puts it into a
String and prints it using the output stream
3. the C# App receives the data ok through a response object
When it doesn't work the following occurs:
1. Pocket Pc requests a page through POST and opens a stream and
writes some data to the stream (Some xml data)
2. The pocket pc app tries to obtain a Response object from the request
3. On the line of code that tries to obtain a response I get a
server error
HTTP/1.1 505
HTTP Version Not Supported..Server: Apache-Coyote/1.1..Date: Tue, 04
Dec 200713:08:21 GMT..Connection: close
Which is weird since my connector is as follows:
<Connector URIEncoding="utf-8" connectionTimeout="20000" port="8084"
protocol="HTTP/1.1" redirectPort="8443"/>
I am using Tomcat 6.0.14 which came bundled with Netbeans 6.
Thank you,
Rich
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]