DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22201>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=22201

Non correct IIS header parsing

           Summary: Non correct IIS header parsing
           Product: Commons
           Version: 2.0 Beta 2
          Platform: All
        OS/Version: Other
            Status: NEW
          Severity: Blocker
          Priority: Other
         Component: HttpClient
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I had to add a case to the HttpParser to avoid it conflicting with IIS 5.0.
This damn httpserver, sometime (I didn't understand the rationale behind)
between the standard headers put a line like this:
 
HTTP/1.1 200

something that should be only on the status line.
So I modified HttpParser this way:

public static Header[] parseHeaders(InputStream is) throws IOException, 
{
---
---
---
  if ((line == null) || (line.length() < 1) || "HTTP/1.1 200".equals(line)) {
        break;
  }
---
---
---
}

this way I can use the HttpClient with IIS.
Do you think we can add this to the standard distribution (rememeber that IIS is
widely used....).
Ciao.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to