curl's project page on


cURL > Mailing List > Monthly Index > Single Mail

curl-tracker Archives

[curl:bugs] #1335 segfault CURLOPT_HTTPHEADER v7.35.1-DEV

From: Daniel Stenberg <>
Date: Sat, 08 Feb 2014 16:20:34 +0000

You're passing in wrong data to CURLOPT_HTTPHEADER.



This is not a bug.

** [bugs:#1335] segfault CURLOPT_HTTPHEADER v7.35.1-DEV**
**Status:** closed-invalid
**Created:** Sat Feb 08, 2014 05:27 AM UTC by Attila Mark
**Last Updated:** Sat Feb 08, 2014 05:27 AM UTC
**Owner:** Daniel Stenberg
With CURLOPT_HTTPHEADER set it core dumps:
#include <stdio.h>
#include <curl/curl.h>
int main( int argc, char *argv[]){
    CURL        *handle;
    CURLcode    res;
    if( !(handle = curl_easy_init())) return( 1);
    curl_easy_setopt( handle, CURLOPT_URL, "cvm:8080/list");
    curl_easy_setopt( handle, CURLOPT_VERBOSE, 1L);
    curl_easy_setopt( handle, CURLOPT_HTTPHEADER, "Accept: application/xml");
    if( (res = curl_easy_perform( handle)) != CURLE_OK){
    curl_easy_cleanup( handle);
* About to connect() to cvm port 8080 (#0)
*   Trying * connected
Segmentation fault (core dumped)
Sent from because is subscribed to
To unsubscribe from further messages, a project admin can change settings at  Or, if this is a mailing list, you can unsubscribe from the mailing list.
Received on 2014-02-08

These mail archives are generated by hypermail.

donate! Page updated December 29, 2013.
web site info

File upload with ASP.NET