diff options
author | Daniel Stenberg <daniel@haxx.se> | 2004-12-05 23:59:32 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2004-12-05 23:59:32 +0000 |
commit | ac269a8f68323db6b579f11f864035bc2691081d (patch) | |
tree | 5bc2116fe477a0b7b01a07331413ba61d8e7306b /lib/http.c | |
parent | 35944744f84f8127529b315951946416fa592a7c (diff) |
Dan Fandrich added the --disable-cookies option to configure to build
libcurl without cookie support. This is mainly useful if you want to build a
minimalistic libcurl with no cookies support at all. Like for embedded
systems or similar.
Diffstat (limited to 'lib/http.c')
-rw-r--r-- | lib/http.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/http.c b/lib/http.c index d7a43ab30..8303c5301 100644 --- a/lib/http.c +++ b/lib/http.c @@ -1449,6 +1449,7 @@ CURLcode Curl_http(struct connectdata *conn) ptr = checkheaders(data, "Host:"); if(ptr && (!data->state.this_is_a_follow || curl_strequal(data->state.first_host, conn->host.name))) { +#if !defined(CURL_DISABLE_COOKIES) /* If we have a given custom Host: header, we extract the host name in order to possibly use it for cookie reasons later on. We only allow the custom Host: header if this is NOT a redirect, as setting Host: in the @@ -1472,6 +1473,7 @@ CURLcode Curl_http(struct connectdata *conn) memcpy(conn->allocptr.cookiehost, start, len); conn->allocptr.cookiehost[len]=0; } +#endif conn->allocptr.host = NULL; } @@ -1708,6 +1710,7 @@ CURLcode Curl_http(struct connectdata *conn) if(result) return result; +#if !defined(CURL_DISABLE_COOKIES) if(data->cookies || addcookies) { struct Cookie *co=NULL; /* no cookies from start */ int count=0; @@ -1757,6 +1760,7 @@ CURLcode Curl_http(struct connectdata *conn) if(result) return result; } +#endif if(data->set.timecondition) { struct tm *thistime; |