diff options
author | jcid <devnull@localhost> | 2007-11-28 15:09:07 +0100 |
---|---|---|
committer | jcid <devnull@localhost> | 2007-11-28 15:09:07 +0100 |
commit | ba08ee0b4e87d71aae5c96aff1bd89e5c1dd6827 (patch) | |
tree | 20b43f3a6620db27b1a1efd7ae346b718eb93022 /src/IO/http.c | |
parent | b0358c3dea7a0f34dc494d82be08ae814a480a50 (diff) |
Added HTTP-1.1's chunked transfer support!
Diffstat (limited to 'src/IO/http.c')
-rw-r--r-- | src/IO/http.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/IO/http.c b/src/IO/http.c index c9dd944b..f6a2cc27 100644 --- a/src/IO/http.c +++ b/src/IO/http.c @@ -185,7 +185,7 @@ char *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) if (URL_FLAGS(url) & URL_Post) { dStr_sprintfa( query, - "POST %s HTTP/1.0\r\n" + "POST %s HTTP/1.1\r\n" "Accept-Charset: utf-8, iso-8859-1\r\n" "Host: %s%s\r\n" "%s" @@ -195,6 +195,7 @@ char *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) "%s" "Content-type: application/x-www-form-urlencoded\r\n" "Content-length: %ld\r\n" + "Connection: close\r\n" "\r\n" "%s", full_path->str, URL_HOST(url), s_port->str, @@ -205,7 +206,7 @@ char *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) } else { dStr_sprintfa( query, - "GET %s HTTP/1.0\r\n" + "GET %s HTTP/1.1\r\n" "%s" "Accept-Charset: utf-8, iso-8859-1\r\n" "Host: %s%s\r\n" @@ -213,6 +214,7 @@ char *a_Http_make_query_str(const DilloUrl *url, bool_t use_proxy) "User-Agent: Dillo/%s\r\n" "Accept-Encoding: gzip\r\n" "Cookie2: $Version=\"1\"\r\n" + "Connection: close\r\n" "%s" "\r\n", full_path->str, |