mirror of
https://github.com/curl/curl.git
synced 2026-07-31 11:38:06 +03:00
parent
666f30614a
commit
926c7eaf55
1 changed files with 6 additions and 5 deletions
|
|
@ -57,11 +57,12 @@ static CURLcode test_lib5004(const char *URL)
|
|||
"date: method path authority content-type: content-length:");
|
||||
easy_setopt(curl, CURLOPT_POSTFIELDS, "{\"hello\": \"world\"}");
|
||||
|
||||
headers = curl_slist_append(NULL, "Date: Tue, 20 Apr 2021 02:07:55 GMT");
|
||||
if(!headers)
|
||||
goto test_cleanup;
|
||||
curl_slist_append(headers, "Content-Type: application/json");
|
||||
curl_slist_append(headers, "Content-Length: 18");
|
||||
headers = curl_slist_append(headers,
|
||||
"Date: Tue, 20 Apr 2021 02:07:55 GMT");
|
||||
headers = curl_slist_append(headers,
|
||||
"Content-Type: application/json");
|
||||
headers = curl_slist_append(headers,
|
||||
"Content-Length: 18");
|
||||
easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
|
||||
|
||||
easy_setopt(curl, CURLOPT_HEADER, 0L);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue