CURLE_BAD_FUNCTION_ARGUMENT for invalid response header filed

bhavesh soni via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <CAF=BjaEiE5jN6VkYtXt_HST74LjzoewmaP+j8BHj5buZ5g6aXg@mail.gmail.com>
Hi there,

While uploading a tgz file on to a server via cURL 7.84.0 onwards, I hit a
response with error code of CURLE_BAD_FUNCTION_ARGUMENT.

Debugging respone header, I could see indeed there is an "additional" HTTP
response code in the header fields without a colon (:). Probably that's the
reason cURL is invalidating the response with "curl: (43) A libcurl
function was given a bad argument".

I don't have control over server code that is generating extra response
filed header (HTTP/1.0 200 OK).

Is there anyway, I can modify cURL source code at my end building custom
curl to link with?



For ref, in below response the first response header is
successfully validated by curl (even without : field), but the other one
highlighted would fail.

[image: image.png]

Thanks,
Bhavesh

-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
image.png (image/png, 50.2 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.