[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xerces-c-dev
Subject:    [jira] [Created] (XERCESC-1963) Custom HTTP headers missing with
From:       "Eric Swalens (JIRA)" <xerces-c-dev () xml ! apache ! org>
Date:       2011-04-17 21:59:05
Message-ID: 499116561.63578.1303077545748.JavaMail.tomcat () hel ! zones ! apache ! org
[Download RAW message or body]

Custom HTTP headers missing with CURL NetAccessor 
--------------------------------------------------

                 Key: XERCESC-1963
                 URL: https://issues.apache.org/jira/browse/XERCESC-1963
             Project: Xerces-C++
          Issue Type: Bug
          Components: Utilities
    Affects Versions: 3.1.1
         Environment: Xerces-c 3.1.1, Mac OS X 10.6.7, i686-apple-darwin10-g++-4.2.1
            Reporter: Eric Swalens
            Priority: Minor
         Attachments: CurlURLInputStream-headers-0.1.patch

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.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscribe@xerces.apache.org
For additional commands, e-mail: c-dev-help@xerces.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic