POST request with std.net.curl

frame frame86 at live.com
Sun Jul 25 15:44:14 UTC 2021


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.


More information about the Digitalmars-d-learn mailing list