Pat Thoyts [Sun, 29 Nov 2009 00:58:08 +0000 (00:58 +0000)]
Return HTTP/1.0 response to the client on CONNECT.
When using Firefox to the sockspy in proxy mode with tls sometimes an
attempt to access a new site send the request down the current socket
to the wrong host. This is likely a HTTP/1.1 pipelining issue.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>
Pat Thoyts [Fri, 27 Nov 2009 15:34:50 +0000 (15:34 +0000)]
Change the parsing of proxy requests to avoid list shimmering.
This patch splits the first line into a method and uri without
using list which might affect the quoting on the data.
Also tidied up the error handling on the ProxyConnect function.
Signed-off-by: Pat Thoyts <patthoyts@users.sourceforge.net>