Fossil

Check-in [ca82d0c1]
Login

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Make proxy connection 'keep-alive' for https tunnel.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | jan-httpsproxytunnel
Files: files | file ages | folders
SHA1:ca82d0c1fa415e8a0c32344cc2280c19bfe45f98
User & Date: jan 2013-10-17 09:07:47
Context
2013-10-17
09:31
Add keep-alive for unauthenticated proxy tunnels. Remove port number from host. check-in: ca61c5e9 user: jan tags: jan-httpsproxytunnel
09:07
Make proxy connection 'keep-alive' for https tunnel. check-in: ca82d0c1 user: jan tags: jan-httpsproxytunnel
2013-10-07
13:27
Support for tunneling https through http proxy. check-in: c039efde user: jan tags: jan-httpsproxytunnel
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Changes to src/http_ssl.c.

184
185
186
187
188
189
190

191
192
193
194
195
196
197
  if( !g.urlProxyAuth ){
    connStr = mprintf("CONNECT %s:%d HTTP/1.1\r\n"
          "Host: %s:%d\r\n\r\n", g.urlHostname, g.proxyOrigPort,
          g.urlHostname, g.proxyOrigPort);
  }else{
    connStr = mprintf("CONNECT %s:%d HTTP/1.1\r\n"
          "Host: %s:%d\r\n"

          "Proxy-Authorization: %s\r\n\r\n", g.urlHostname, g.proxyOrigPort,
          g.urlHostname, g.proxyOrigPort, g.urlProxyAuth);
  }
  BIO_write(bio, connStr, strlen(connStr));
  free(connStr);

  /* Wait for end of reply */







>







184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
  if( !g.urlProxyAuth ){
    connStr = mprintf("CONNECT %s:%d HTTP/1.1\r\n"
          "Host: %s:%d\r\n\r\n", g.urlHostname, g.proxyOrigPort,
          g.urlHostname, g.proxyOrigPort);
  }else{
    connStr = mprintf("CONNECT %s:%d HTTP/1.1\r\n"
          "Host: %s:%d\r\n"
          "Proxy-Connection: keep-alive\r\n"
          "Proxy-Authorization: %s\r\n\r\n", g.urlHostname, g.proxyOrigPort,
          g.urlHostname, g.proxyOrigPort, g.urlProxyAuth);
  }
  BIO_write(bio, connStr, strlen(connStr));
  free(connStr);

  /* Wait for end of reply */