We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have tested this library, but I always got a segmentation fault in: void curl_header::add(const string header)
void curl_header::add(const string header)
After some tests I noticed it is this line: this->headers = curl_slist_append(this->headers,header.c_str());
this->headers = curl_slist_append(this->headers,header.c_str());
I compiled against libcurl 7.38.0 and compiled with no special flags (except maybe -fPIC). My example to reproduce:
std::initializer_list<std::string> headers = { "User-Agent: Mozilla/5.0", "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8", "Accept-Encoding: gzip,deflate"}; std::ostringstream resultStream; curl_writer writer(resultStream); curl_form form; curl_easy easy(writer); curl_header header(headers); //Never reaches this point```
The text was updated successfully, but these errors were encountered:
Fixed segmentation fault on header init (Issue JosephP91#23)
6db4b77
Merge pull request #24 from susnux/master
ce29c7d
Fixed segmentation fault on header init (Issue #23)
No branches or pull requests
I have tested this library, but I always got a segmentation fault in:
void curl_header::add(const string header)
After some tests I noticed it is this line:
this->headers = curl_slist_append(this->headers,header.c_str());
I compiled against libcurl 7.38.0 and compiled with no special flags (except maybe -fPIC).
My example to reproduce:
The text was updated successfully, but these errors were encountered: