Details
Description
It seems that the custom headers set using XMLNetHTTPInfo are missing from the actual HTTP request when the CURLNetAccessor is used. The SocketNetAccessor does not show this problem.
The headerList in the CurlURLInputStream constructor is correctly built but from what I understand of the CURL documentation the list cannot be freed until the GET request has been made. Currently the list feed right after setting the CURLOPT_HTTPHEADER. Delaying the call curl_slist_free_all to the destructor solves the issue (patch attached).
Attachments
Attachments
Issue Links
- is duplicated by
-
XERCESC-2160 Postpone freeing the memory being used by CURL
- Closed