POST request with std.net.curl

bachmeier no at spam.net
Mon Jul 26 14:13:53 UTC 2021


On Sunday, 25 July 2021 at 15:44:14 UTC, frame wrote:
> On Sunday, 25 July 2021 at 13:07:36 UTC, bachmeier wrote:
>> On Friday, 23 July 2021 at 18:11:51 UTC, bachmeier wrote:
>>
>> [...]
>>
>> After all this, it turned out the answer was a simple (but not 
>> obvious) typo in the header information. It would be nice to 
>> get more information than "HTTP request returned status code 
>> 400 ()". I don't know if that's possible, but command line 
>> curl provides better messages.
>
> In doubt you can turn on the verbose() method on the HTTP 
> object.

That's a modest improvement (for the small number of people that 
find the option in the docs) but definitely not at the same level 
of information as the curl CLI. I created an issue requesting 
better output: <https://issues.dlang.org/show_bug.cgi?id=22142>


More information about the Digitalmars-d-learn mailing list