Payload Details with std.net.curl:post

Kyle Ingraham kyle at kyleingraham.com
Sat Nov 27 20:31:16 UTC 2021


On Saturday, 27 November 2021 at 19:21:28 UTC, frame wrote:
> On Saturday, 27 November 2021 at 17:41:55 UTC, Kyle Ingraham 
> wrote:
>
>> Is there a way to see that information? Google's API does not 
>> seem to provide much more than a status code as to the reason 
>> for the failure.
>
> No, and it's a shame that we cannot use 
> CurlOption.debugfunction because the Curl struct on HTTP is 
> private and the only way to set this option is to use a raw 
> Curl instance.
>
> You are on your own working with onReceive(), setPostData() and 
> std.uri.urlEncode() to encode your post data.

I was afraid of that. Thank you for clarifying. I’ve tried other 
clients but they all seem to have trouble verifying HTTPS 
connections.

I’ll see about debugging with curl outside of D or go the manual 
route like you suggested.




More information about the Digitalmars-d-learn mailing list