a2bb33d
diff -urNp corkscrew-2.0.orig/corkscrew.c corkscrew-2.0/corkscrew.c
a2bb33d
--- corkscrew-2.0.orig/corkscrew.c	2007-05-19 09:56:05.000000000 +0530
a2bb33d
+++ corkscrew-2.0/corkscrew.c	2007-05-19 10:07:00.000000000 +0530
a2bb33d
@@ -176,6 +176,7 @@ char *argv[];
a2bb33d
 #endif
a2bb33d
 	char *host = NULL, *desthost = NULL, *destport = NULL;
a2bb33d
 	char *up = NULL;
a2bb33d
+	char *tmp = NULL;
a2bb33d
 	int port, sent, setup, code, csock;
a2bb33d
 	fd_set rfd, sfd;
a2bb33d
 	struct timeval tv;
a2bb33d
@@ -262,6 +263,11 @@ char *argv[];
a2bb33d
 						fprintf(stderr, "Proxy could not open connnection to %s: %s\n", desthost, descr);
a2bb33d
 						exit(-1);
a2bb33d
 					}
a2bb33d
+					if (tmp = strstr(buffer,"\r\n\r\n"))
a2bb33d
+					{
a2bb33d
+					    tmp += 4;
a2bb33d
+					    write(1, tmp, strlen(tmp));
a2bb33d
+					}
a2bb33d
 				}
a2bb33d
 			}
a2bb33d
 			if (FD_ISSET(csock, &sfd) && (sent == 0)) {
a2bb33d
diff -urNp corkscrew-2.0.orig/README corkscrew-2.0/README
a2bb33d
--- corkscrew-2.0.orig/README	2007-05-19 09:56:05.000000000 +0530
a2bb33d
+++ corkscrew-2.0/README	2007-05-19 09:56:48.000000000 +0530
a2bb33d
@@ -47,7 +47,7 @@ Setting up Corkscrew with SSH/OpenSSH is
a2bb33d
 the following line to your ~/.ssh/config file will usually do
a2bb33d
 the trick (replace proxy.example.com and 8080 with correct values):
a2bb33d
 
a2bb33d
-ProxyCommand /usr/local/bin/corkscrew proxy.example.com 8080 %h %p
a2bb33d
+ProxyCommand /usr/bin/corkscrew proxy.example.com 8080 %h %p
a2bb33d
 
a2bb33d
 NOTE: Command line syntax has changed since version 1.5.  Please
a2bb33d
 notice that the proxy port is NOT optional anymore and is required
a2bb33d
@@ -70,7 +70,7 @@ chmod 600 myauth
a2bb33d
 Now you will have to change the ProxyCommand line in your ~/.ssh/config
a2bb33d
 file.  Here's an example :
a2bb33d
 
a2bb33d
-ProxyCommand /usr/local/bin/corkscrew proxy.work.com 80 %h %p ~/.ssh/myauth
a2bb33d
+ProxyCommand /usr/bin/corkscrew proxy.work.com 80 %h %p ~/.ssh/myauth
a2bb33d
 
a2bb33d
 The proxy authentication feature is very new and has not been tested
a2bb33d
 extensively so your mileage may vary.  If you encounter any problems