From f30ffef477636dc10a72eb30590a84a0218e5935 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 20 Jun 2000 09:28:09 +0000 Subject: autoreferer added, switches off POST on location: following --- lib/url.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'lib/url.c') diff --git a/lib/url.c b/lib/url.c index 6da761b22..62e81d243 100644 --- a/lib/url.c +++ b/lib/url.c @@ -218,6 +218,9 @@ void urlfree(struct UrlData *data, bool totally) if(data->headerbuff) free(data->headerbuff); + if(data->free_referer) + free(data->referer); + cookie_cleanup(data->cookies); free(data); @@ -421,6 +424,9 @@ CURLcode curl_setopt(CURL *curl, CURLoption option, ...) data->referer = va_arg(param, char *); data->bits.http_set_referer = (data->referer && *data->referer)?1:0; break; + case CURLOPT_AUTOREFERER: + data->bits.http_auto_referer = va_arg(param, long)?1:0; + break; case CURLOPT_PROXY: data->proxy = va_arg(param, char *); data->bits.httpproxy = data->proxy?1:0; -- cgit v1.2.3