--- ../curl-7.19.2/lib/http.c	2008-11-11 17:19:27.000000000 -0500
+++ Win32/curl-7.19.2/build/lib/http.c	2009-01-06 11:27:15.000000000 -0500
@@ -1253,6 +1253,20 @@
   return FALSE; /* no match */
 }
 
+/* Determine if we should use HTTP 1.1 for this request. Reasons to avoid it
+are if the user specifically requested HTTP 1.0, if the server we are
+connected to only supports 1.0, or if any server previously contacted to
+handle this request only supports 1.0. */
+static bool use_http_1_1(const struct SessionHandle *data,
+                         const struct connectdata *conn)
+{
+  return (bool)((data->set.httpversion == CURL_HTTP_VERSION_1_1) ||
+         ((data->set.httpversion != CURL_HTTP_VERSION_1_0) &&
+          ((conn->httpversion == 11) ||
+           ((conn->httpversion != 10) &&
+            (data->state.httpversion != 10)))));
+}
+
 #ifndef CURL_DISABLE_PROXY
 /*
  * Curl_proxyCONNECT() requires that we're connected to a HTTP proxy. This
@@ -1324,6 +1338,7 @@
       result = http_output_auth(conn, "CONNECT", host_port, TRUE);
 
       if(CURLE_OK == result) {
+        const char* http = use_http_1_1(data, conn) ? "HTTP/1.1" : "HTTP/1.0";
         char *host=(char *)"";
         const char *proxyconn="";
         const char *useragent="";
@@ -1347,12 +1362,12 @@
         /* BLOCKING */
         result =
           add_bufferf(req_buffer,
-                      "CONNECT %s:%d HTTP/1.0\r\n"
+                      "CONNECT %s:%d %s\r\n"
                       "%s"  /* Host: */
                       "%s"  /* Proxy-Authorization */
                       "%s"  /* User-Agent */
                       "%s", /* Proxy-Connection */
-                      hostname, remote_port,
+                      hostname, remote_port, http,
                       host,
                       conn->allocptr.proxyuserpwd?
                       conn->allocptr.proxyuserpwd:"",
@@ -1935,21 +1950,6 @@
   return CURLE_OK;
 }
 
-
-/* Determine if we should use HTTP 1.1 for this request. Reasons to avoid it
-are if the user specifically requested HTTP 1.0, if the server we are
-connected to only supports 1.0, or if any server previously contacted to
-handle this request only supports 1.0. */
-static bool use_http_1_1(const struct SessionHandle *data,
-                         const struct connectdata *conn)
-{
-  return (bool)((data->set.httpversion == CURL_HTTP_VERSION_1_1) ||
-         ((data->set.httpversion != CURL_HTTP_VERSION_1_0) &&
-          ((conn->httpversion == 11) ||
-           ((conn->httpversion != 10) &&
-            (data->state.httpversion != 10)))));
-}
-
 /* check and possibly add an Expect: header */
 static CURLcode expect100(struct SessionHandle *data,
                           struct connectdata *conn,
