kio_http: bug with IIS

Tobias Anton TA at ESC-Electronics.de
Fri Sep 6 09:01:57 BST 2002


On Wednesday 04 September 2002 09:28, Daniel Molkentin wrote:
> On Tuesday 03 September 2002 21:32, Waldo Bastian wrote:
> > The complete server response is probably:
> > --empty--
> > "Server: Microsoft-IIS/5.0"
> > "Date: Tue, 03 Sep 2002 11:00:58 GMT"
> > --empty--
> > "HTTP/1.1 200 OK"
> > "Server: Microsoft-IIS/5.0"
> > "Date: Tue, 03 Sep 2002 11:00:58 GMT"
> > "Connection: close"
> > "Content-Type:  text/html; charset=iso-8859-1"
> >
> > HTTP defines that the header ends with the first empty line. Despite that
> > we still accept the first empty line since that is clearly an error, but
> > the second empty line is seen as end of header.
>
> Yes, but how would one fix that? Do a lookahead over the empty line?
ignore empty lines before the "HTTP" response.

But I bet that someday a server is discovered that fails to send "HTTP" 
correctly.

Daniel, could you try this patch and tell if it worked?

Cheers,
Tobias
-------------- next part --------------
A non-text attachment was scrubbed...
Name: http-ignore-leading-garbage.diff
Type: text/x-diff
Size: 1174 bytes
Desc: not available
URL: <https://mail.kde.org/mailman/private/kfm-devel/attachments/20020906/3e79384d/attachment.diff>


More information about the kfm-devel mailing list