Mike4
July 16, 2024, 4:46pm
1
Hi,
I am trying to use this below:
curl -X GET --user username:password -i http://yourdomain.com/wp-json/wp/v2/posts?status=draft
But I’ve got an 400 error message (HTTP/1.1 400 Bad request). What could that be? I’ve already tried other so far but this one doesn’t work…
Thanks in advance
Are you learning about the WP Rest api from some resource?
When I review the REST API handbook, it looks like the command is close, but slightly different:
curl --user "USERNAME:PASSWORD" https://HOSTNAME/wp-json/wp/v2/users?context=edit
Also, according to the docs, you want to ensure that you have an application password set that you can use.
Mike4
July 18, 2024, 2:01pm
6
I’ve got this error message but I don’t know where that comes from…
Mike4
July 23, 2024, 9:47pm
7
I am trying to post this on my local site. But the change expected is not displayed. There may bee something to do with the server operator. Does someone know how to resolve this?
system
Closed
October 21, 2024, 9:47pm
8
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.