Buy commercial curl support from WolfSSL. We help you work
out your issues, debug your libcurl applications, use the API, port to new
platforms, add new features and more. With a team lead by the curl founder
himself.
Re: Disable verify_header in 7.84.0
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
From: Daniel Stenberg via curl-users <curl-users_at_lists.haxx.se>
Date: Mon, 6 Feb 2023 09:38:04 +0100 (CET)
On Mon, 6 Feb 2023, bhavesh soni wrote:
> So essentially nothing wrong with the curl or the function, but on a very
> custom scale I wanted to check if I can manually disable this so as to
> allow this for my case.
You can just remove the use of that function:
diff --git a/lib/http.c b/lib/http.c
index 3eba1a375..44055d2c5 100644
--- a/lib/http.c
+++ b/lib/http.c
_at__at_ -4281,14 +4281,10 _at__at_ CURLcode Curl_http_readwrite_headers(struct Curl_easy
*data,
k->header = FALSE; /* this is not a header line */
break;
}
}
- result = verify_header(data);
- if(result)
- return result;
-
result = Curl_http_header(data, conn, headp);
if(result)
return result;
/*
Date: Mon, 6 Feb 2023 09:38:04 +0100 (CET)
On Mon, 6 Feb 2023, bhavesh soni wrote:
> So essentially nothing wrong with the curl or the function, but on a very
> custom scale I wanted to check if I can manually disable this so as to
> allow this for my case.
You can just remove the use of that function:
diff --git a/lib/http.c b/lib/http.c
index 3eba1a375..44055d2c5 100644
--- a/lib/http.c
+++ b/lib/http.c
_at__at_ -4281,14 +4281,10 _at__at_ CURLcode Curl_http_readwrite_headers(struct Curl_easy
*data,
k->header = FALSE; /* this is not a header line */
break;
}
}
- result = verify_header(data);
- if(result)
- return result;
-
result = Curl_http_header(data, conn, headp);
if(result)
return result;
/*
-- / daniel.haxx.se | Commercial curl support up to 24x7 is available! | Private help, bug fixes, support, ports, new features | https://curl.se/support.html -- Unsubscribe: https://lists.haxx.se/listinfo/curl-users Etiquette: https://curl.se/mail/etiquette.htmlReceived on 2023-02-06