Bug 14760 – Clear content-length for libcurl option to eliminate segmentation fault.
Status
RESOLVED
Resolution
FIXED
Severity
normal
Priority
P1
Component
phobos
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2015-07-02T13:26:00Z
Last change time
2015-10-04T18:20:01Z
Assigned to
nobody
Creator
karo+dlang
Comments
Comment #0 by karo+dlang — 2015-07-02T13:26:15Z
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);
}
Comment #1 by github-bugzilla — 2015-07-14T00:36:35Z