[Issue 14760] New: Clear content-length for libcurl option to eliminate segmentation fault.
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Thu Jul 2 06:26:15 PDT 2015
https://issues.dlang.org/show_bug.cgi?id=14760
Issue ID: 14760
Summary: Clear content-length for libcurl option to eliminate
segmentation fault.
Product: D
Version: D2
Hardware: x86_64
OS: Linux
Status: NEW
Severity: normal
Priority: P1
Component: phobos
Assignee: nobody at puremagic.com
Reporter: karo+dlang at karonori.com
Request post method & trace(CUSTOM REQUEST) method on persistent connection,
libcurl is segmentation fault.
segmentation fault is not depended on http response.
But some responses are needed.
import std.net.curl;
void main()
{
auto http = HTTP();
auto url = "http://localhost:8080/";
// It is required to upload contents.
post(url, "a", http);
// segmentation fault by trace call after post with content.
trace(url, http);
}
--
More information about the Digitalmars-d-bugs
mailing list