> > > 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. > If we worry about people/client send us malformed request intentionally, he can do
FUBAR foo HTTP?1.1 Content-Lenght: 0 foo Still trick polipo to interpret the second foo. > > 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. I guess the CONNECT is not allow to pipeline, upon failure, there is no need to parse the next request. > > > Juliusz > Ming ------------------------------------------------------------------------- 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
