> This seems to work, but very hard to understand the logic.
[...]
> Change the default len to 0 make the case of no Content-Length the same as
> "Content-Length:0".
It's obviously not correct in general. Consider the following:
FUBAR foo HTTP/1.1
foo
There's no content-length, so Polipo will run discardBody with len=-1,
which will keep it from trying to interpret the ``foo'' as another request.
> This is what happens from IE7 and Firefox 2, The CONNECT from
> browser has Content-Length: 0 in the Header, but the java vm within
> the these browser don't.
That's silly, and it will break Polipo. Consider the following:
CONNECT localhost:80 HTTP/1.1
Content-Length: 0
POST whatever HTTP/1.1
After Polipo returns an error from CONNECT, it will interpret the POST
as the beginning of a new request rather than part of the failed CONNECT
request, which will cause confusion.
Juliusz
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Polipo-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/polipo-users