Summary: multiple headers and NTLM causes segmentation fault Initial Comment: Below is output from curl -V: curl 7.12.3 (powerpc-ibm-aix5.2.0.0) libcurl/7.12.3 OpenSSL/0.9.7b zlib/1.1.4 li bidn/0.5.9 Protocols: ftp gopher telnet dict ldap http file https ftps Features: IDN IPv6 Largefile NTLM SSL libz. To pass multiple headers in a curl request you simply add additional -H or -header to your curl command. Re: cURL doesnt seem to pass multiple headers using multiple -H options. This message: Message body More options Related messages: Next message Previous message In reply to Next in thread Replies. Multiple headers You can pass headers to cURL with the -H option. And to pass multiple headers, you just need to use the -H option multiple times.
Single Mail
- This message:[ Message body ] [ More options ]
- Related messages:[ Next message ][ Previous message ]
Date: Fri, 12 Aug 2005 01:47:59 -0700

Bugs item #1256799, was opened at 2005-08-11 17:29
Message generated for change (Comment added) made by bagder
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1256799&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: http
Group: crash
Status: Open
Resolution: Works For Me
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Daniel Stenberg (bagder)
Summary: multiple headers and NTLM causes segmentation fault
Initial Comment:
Below is output from curl -V:
curl 7.12.3 (powerpc-ibm-aix5.2.0.0) libcurl/7.12.3
OpenSSL/0.9.7b zlib/1.1.4 li
bidn/0.5.9
Protocols: ftp gopher telnet dict ldap http file https ftps
Features: IDN IPv6 Largefile NTLM SSL libz
I am running aix5.2, using the curl 7.12.3 binary from
ftp.thewrittenword.com
I am trying to get the output from a webservice which
authenticates using NTLM.
I receive 'Segmentation fault(coredump)' when I attempt
to post multiple headers to the website. For example:
curl -u user:pw --ntlm -d @curldata.xml -H 'Content-
Type: text/xml' -H 'SOAPAction:
http://blablah.com/blah/blah' http://blah.com/bb/bb
curldata.xml is a file that holds the SOAP XML text
message.
When I use only one -H with NTLM, curl works as
expected.
Curl Show Response
When I use multiple -H to a website with no
authentication, curl works as expected.
However, using multiple -H with NTLM, it causes the
error.
Both -H switches are needed (the first one specifies the
correct data content-type, the second specifies the
correct soap action).
The error outputs no trace file or verbose logging.
Is this a compilation problem? Is it a problem with the
installation? Can anybody provide some direction?
Thanks
----------------------------------------------------------------------
>Comment By: Daniel Stenberg (bagder)
Date: 2005-08-12 10:47
Message:
Logged In: YES
user_id=1110
I don't have one available, but compiling from source is
really easy so you should be able to get someone to do it
for you or even do it yourself.
----------------------------------------------------------------------
Comment By: Nobody/Anonymous (nobody)
Date: 2005-08-12 04:13
Message:
Logged In: NO
Do you have one that is already compiled for AIX5.2 and SSL-
enabled? I cannot find any later one than 7.12.3, and I am
not familiar enough to compile on my own. Thanks
----------------------------------------------------------------------
Comment By: Daniel Stenberg (bagder)
Date: 2005-08-11 23:36
Message:
Logged In: YES
user_id=1110
I tried this just now and it works fine for me. I don't
remember any bugs from the past that we've fixed that sound
like this.
I suggest you try upgrading to a later curl version. When
using NTLM, you should use 7.13.1 or later anyway for
security reasons.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=100976&aid=1256799&group_id=976
_______________________________________________
http://cool.haxx.se/cgi-bin/mailman/listinfo/curl-tracker
Received on 2005-08-12
- This message: [ Message body ]
- Next message: SourceForge.net: '[ curl-Bugs-1256799 ] multiple headers and NTLM causes segmentation fault'
- Previous message: SourceForge.net: '[ curl-Bugs-1256799 ] multiple headers and NTLM causes segmentation fault'
- Contemporary messages sorted: [ by date ] [ by thread ] [ by subject ] [ by author ] [ by messages with attachments ]
These mail archives are generated by hypermail.
Curl Multiple Headers Pdf
Click to see full answer
Considering this, how do you send a header with curl?
This curl command has the ability to add an additional HTTP Header to your GET requests. Simply use the -H option and set the header name and value in enclosed quotes. If you do not define a value for the header then the header itself must be followed by a semi-colon (e.g. X-Header;).
Secondly, how do I add a header to a URL? Add Headers :To add http header with the http request, click on Form tab and then click on add new header will ask you to add key and value for the header. Provide the appropriate header name and the value of the header that you want to trigger. Also you can add more than one header by clicking on Add new header link.
Also to know is, what is header in curl?
man curl : -H/--header <header> (HTTP) Extra header to use when getting a web page. You may specify any number of extra headers. Note that if you should add a custom header that has the same name as one of the internal ones curl would use, your externally set header will be used instead of the internal one.
What Curl stands for?
cURL (pronounced 'curl') is a computer software project providing a library (libcurl) and command-line tool (curl) for transferring data using various network protocols. The name stands for 'Client URL', which was first released in 1997.
