commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Hoegg <rho...@isisnetworks.net>
Subject Re: [PATCH][HttpClient] bug 12607
Date Sun, 29 Sep 2002 18:25:52 GMT
As you probably suspected, the server's response doesn't seem to be 
showing any extra stuff in the chunk-size section.  In fact, I think the 
problem is that the server is giving a Content-Length header as well as 
chunking.  From RFC2616:

If a message is received with both a Transfer-Encoding header field and a Content-Length header
field, the latter MUST be ignored.

This is what my sniffer shows as the server's response:

HTTP/1.1 200 OK
Date: Sun, 29 Sep 2002 18:20:42 GMT
Server: Apache/1.3.26 (Unix) Debian GNU/Linux PHP/4.2.2
X-Powered-By: PHP/4.2.2
Transfer-Encoding: chunked
Content-Type: text/xml
Content-length: 338

152
<?xml version="1.0"?>
<methodResponse>
<fault>
  <value>
    <struct>
      <member>
        <name>faultCode</name>
        <value><int>1</int></value>
      </member>
      <member>
        <name>faultString</name>
        <value><string>Unknown method</string></value>
      </member>
    </struct>
  </value>
</fault>
</methodResponse>
0

And this is what UrlPostMethod.getResponseBodyAsString() is returning:

152
<?xml version="1.0"?>
<methodResponse>
<fault>
  <value>
    <struct>
      <member>
        <name>faultCode</name>
        <value><int>1</int></value>
      </member>
      <member>
        <name>faultString</name>
        <value><string>Unknown method</string></value>
      </member>
    </struct>
  </value>
</fault>
</methodResp

I'll see if I can't put together a bug report and patch and post it to 
bugzilla.

--
Ryan Hoegg
ISIS Networks

Ortwin Gl├╝ck wrote:

> Could you post the server's response?
>
> Ryan Hoegg wrote:
>
>> Although it seems we will be going to BNF as a regex someday, I am 
>> suspicious that this very issue is causing incompatibility with a 
>> HTTP 1.1 server I am trying to access.  So I may make a stab at 
>> parsing this chunk size thing  as I wrote below.  Am I right in 
>> assuming this patch should go to bug 12607? 
>


--
To unsubscribe, e-mail:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message