www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 14760] New: Clear content-length for libcurl option to


          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 puremagic.com
          Reporter: karo+dlang 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);

Jul 02 2015