On Monday, 26 July 2021 at 19:53:05 UTC, frame wrote:
All better the lib could do is to print the text for the status
too and the raw payload sent by the server aka error
description, if any.
That's what I'm proposing. Currently std.net.curl's post function
doesn't report all the information
On Monday, 26 July 2021 at 14:13:53 UTC, bachmeier wrote:
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 cre
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 n
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 returne
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, bu
On Saturday, 24 July 2021 at 06:01:25 UTC, frame wrote:
On Friday, 23 July 2021 at 21:25:01 UTC, bachmeier wrote:
Authorization is working - it's the same whether I'm doing a
GET or POST request. The problem is passing the data. The main
problem is that the documentation doesn't explain how to
On Friday, 23 July 2021 at 21:25:01 UTC, bachmeier wrote:
Authorization is working - it's the same whether I'm doing a
GET or POST request. The problem is passing the data. The main
problem is that the documentation doesn't explain how to
translate a `--data` option into a `post` call. I've tr
On Friday, 23 July 2021 at 19:59:33 UTC, Ali Çehreli wrote:
On 7/23/21 11:11 AM, bachmeier wrote:
I'm writing a D program that interacts with the Todoist API
using std.net.curl. It's not a problem to do get requests to
query tasks, but I cannot find a way to get post to work to
create a new ta
On 7/23/21 11:11 AM, bachmeier wrote:
I'm writing a D program that interacts with the Todoist API using
std.net.curl. It's not a problem to do get requests to query tasks, but
I cannot find a way to get post to work to create a new task.
This is a working bash script, where APIKEY is defined e