cURL
Haxx ad
libcurl

curl's project page on SourceForge.net

Sponsors:
Haxx

cURL > Mailing List > Monthly Index > Single Mail

curl-tracker mailing list Archives

[ curl-Bugs-2715307 ] VMS-Alpha abend using CURLOPT_HTTPHEADER

From: SourceForge.net <noreply_at_sourceforge.net>
Date: Mon, 13 Apr 2009 18:03:28 +0000

Bugs item #2715307, was opened at 2009-03-26 21:06
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2715307&group_id=976

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: libcurl
Group: crash
Status: Open
Resolution: None
>Priority: 4
Private: No
Submitted By: ron bishop (ronbishop)
Assigned to: Daniel Stenberg (bagder)
Summary: VMS-Alpha abend using CURLOPT_HTTPHEADER

Initial Comment:
I have a C application written on VMS-Alpha version V7.2-1 that uses curl to Post to a URL. I'm having a problem overriding an http header field that Curl defaults. Curl defaults content-type in the http header to "application/x-www-form-urlencoded". My application is trying to pass XML in the body of the Post. Here is the Post with the default header fields not including my XML:
POST /SXC-RxExpress/AuthenticatingXmlServer.aspx HTTP/1.1
Authorization: Basic JHhjNHgzcHIjc3M6JHVyMyRjcjhwdCQ=
Host: staging.surescripts.net
Accept: */*
Content-Length: 1228
Content-Type: application/x-www-form-urlencoded
Expect: 100-continue

I subsequently wanted to change the "Content-Type" header to "text/xml", I am using the following code to do that in my application:

struct curl_slist *m_headerlist;
m_headerlist = NULL;
m_headerlist = curl_slist_append(m_headerlist, "Content-Type: text/xml");
.
.
curl_easy_setopt(pCurl, CURLOPT_HTTPHEADER, m_headerlist);
.
.
curl_slist_free_all(m_headerlist);

Executing my application with curl version 7.19.4 produces the following abend:
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=000000004C525543, PC=0000000000561D44, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
  image module routine line rel PC abs PC
 CURLLIB256 RAWSTR Curl_raw_nequal 16013 00000000000002D4 0000000000561D44
 CURLLIB256 HTTP checkheaders 65540 000000000000007C 000000000054475C
 CURLLIB256 HTTP Curl_http 67474 0000000000003194 0000000000547874
 CURLLIB256 URL Curl_do 70812 000000000000698C 000000000053986C
 CURLLIB256 TRANSFER Transfer 67951 0000000000003878 000000000055F898
 CURLLIB256 TRANSFER Curl_perform 67951 0000000000000000 0000000000000000

I also tried the same type setup with curl version 7.16.0 and I get a similar abend:
%SYSTEM-F-ACCVIO, access violation, reason mask=00, virtual address=000000004C525543, PC=FFFFFFFF80A55C88, PS=0000001B
%TRACE-F-TRACEBACK, symbolic stack dump follows
  image module routine line rel PC abs PC
                                            0 0000000000000000 FFFFFFFF80A55C88
 CURLLIB STREQUAL curl_strnequal 9311 0000000000000064 0000000000539D54
 CURLLIB HTTP checkheaders 59326 000000000000007C 000000000053DD6C
 CURLLIB HTTP Curl_http 60871 0000000000002874 0000000000540564
 CURLLIB URL Curl_do 64037 0000000000005774 000000000052CC44
 CURLLIB TRANSFER Transfer 61593 0000000000003604 00000000005346E4
 CURLLIB TRANSFER Curl_perform 61596 0000000000000000 0000000000000000

----------------------------------------------------------------------

>Comment By: Daniel Stenberg (bagder)
Date: 2009-04-13 20:03

Message:
Why treat it as third party then? You can build libcurl within your project
and debug it just like you debug your own app...

----------------------------------------------------------------------

Comment By: ron bishop (ronbishop)
Date: 2009-04-07 14:52

Message:
Well debugging a third party application on OpenVMS is dicey. I'll see if I
can possibly get it to debug.

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2009-04-03 22:34

Message:
Thanks for reporting this issue and helping us improve curl and libcurl.

We're awaiting feedback in this issue. Due to this, I have set the state
of this issue to pending and it will automatically get closed later on
unless we get further info.

Please consider answering the outstanding questions or providing the
missing info so that we can proceed to resolve this issue!

----------------------------------------------------------------------

Comment By: Daniel Stenberg (bagder)
Date: 2009-03-28 22:36

Message:
Since this works and has worked a long time for others it makes me suspect
that this is either a problem with your app or something particular in the
VMS environment. Any chance you can use a debugger or similar to figure
exactly why this happens?

----------------------------------------------------------------------

You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=2715307&group_id=976
Received on 2009-04-13

These mail archives are generated by hypermail.

donate! Page updated November 12, 2010.
web site info

File upload with ASP.NET