HTTP Post Body Parameters

2023-08-01 Thread Vahid via Digitalmars-d-learn
Hi, I want to submit a request to server with "x-www-form-urlencoded" header. This is the simplified version of my code: auto http = HTTP("https://myurl.com/api";); http.addRequestHeader("Content-Type", "application/x-www-form-urlencoded"); http.addRequestHeader("Authorization",

Re: HTTP Post Body Parameters

2023-08-01 Thread Ivan Kazmenko via Digitalmars-d-learn
On Tuesday, 1 August 2023 at 23:57:29 UTC, Vahid wrote: I want to submit a request to server with "x-www-form-urlencoded" header. Isn't https://dlang.org/library/std/net/curl/post.html what you need?

Re: HTTP Post Body Parameters

2023-08-01 Thread Steven Schveighoffer via Digitalmars-d-learn
On 8/1/23 7:57 PM, Vahid wrote: Hi, I want to submit a request to server with "x-www-form-urlencoded" header. This is the simplified version of my code:     auto http = HTTP("https://myurl.com/api";);     http.addRequestHeader("Content-Type", "application/x-www-form-urlencoded");     ht