diff -Nur corkscrew-2.0.orig/corkscrew.c corkscrew-2.0/corkscrew.c --- corkscrew-2.0.orig/corkscrew.c 2001-08-23 20:27:32.000000000 +0200 +++ corkscrew-2.0/corkscrew.c 2006-04-04 16:12:43.000000000 +0200 @@ -176,6 +176,7 @@ #endif char *host = NULL, *desthost = NULL, *destport = NULL; char *up = NULL; + char *tmp = NULL; int port, sent, setup, code, csock; fd_set rfd, sfd; struct timeval tv; @@ -262,6 +263,11 @@ fprintf(stderr, "Proxy could not open connnection to %s: %s\n", desthost, descr); exit(-1); } + if (tmp = strstr(buffer, "\r\n\r\n")) + { + tmp += 4; + write(1, tmp, strlen(tmp)); + } } } if (FD_ISSET(csock, &sfd) && (sent == 0)) {