mirror of
https://github.com/proxytunnel/proxytunnel.git
synced 2026-01-23 02:34:59 +00:00
Use HTTP/1.1, so we can connect over JoikuSpot accesspoints
git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@247 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
parent
b7006ddbcb
commit
40a56608bd
2 changed files with 8 additions and 3 deletions
5
CHANGES
5
CHANGES
|
|
@ -1,3 +1,8 @@
|
|||
Changes to proxytunnel after 1.9.0 -- Unreleased
|
||||
|
||||
- Switch to HTTP/1.1 commands, so we can tunnel over JoikuSpot's which
|
||||
don't understand http/1.0 command (Mark Janssen)
|
||||
|
||||
Changes to proxytunnel version 1.9.0 -- Sat Feb 23 22:03:10 CET 2008
|
||||
|
||||
- Fixes for runtime error on RHEL5/CENTOS-5 (gcc4 and -D_FORTIFY_SOURCE=2) (Dag Wieers)
|
||||
|
|
|
|||
6
http.c
6
http.c
|
|
@ -105,11 +105,11 @@ void proxy_protocol(PTSTREAM *pts) {
|
|||
if (args_info.remproxy_given ) {
|
||||
if( args_info.verbose_flag )
|
||||
message( "\nTunneling to %s (remote proxy)\n", args_info.remproxy_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.0\r\n", args_info.remproxy_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.remproxy_arg, args_info.remproxy_arg );
|
||||
} else {
|
||||
if( args_info.verbose_flag )
|
||||
message( "\nTunneling to %s (destination)\n", args_info.dest_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.0\r\n", args_info.dest_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s", args_info.dest_arg, args_info.dest_arg );
|
||||
}
|
||||
|
||||
if ( args_info.user_given && args_info.pass_given ) {
|
||||
|
|
@ -163,7 +163,7 @@ void proxy_protocol(PTSTREAM *pts) {
|
|||
|
||||
if( args_info.verbose_flag )
|
||||
message( "\nTunneling to %s (destination)\n", args_info.dest_arg );
|
||||
sprintf( buf, "CONNECT %s HTTP/1.0\r\n", args_info.dest_arg);
|
||||
sprintf( buf, "CONNECT %s HTTP/1.1\r\nHost: %s\r\n", args_info.dest_arg, args_info.dest_arg);
|
||||
|
||||
if ( args_info.remuser_given && args_info.rempass_given )
|
||||
strzcat( buf, "Proxy-Authorization: Basic %s\r\n", basicauth(args_info.remuser_arg, args_info.rempass_arg ));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue