Curl to post JSON content and read response

0

1

I'm trying to POST content to a web server and read the response. So far I have the following code:

curl -v -H "Accept: application/json" -H "Content-Type: application/json" -X POST -d 'action=servers_recommendations&filters={"country_id":108}' https://example.com/wp-admin/admin-ajax.php?action=servers_recommendations&filters={"country_id":108}

The response looks like it's only hitting one part of the post:

POST /wp-admin/admin-ajax.php?action=servers_recommendations

How do I send both parts of the POST request and have it return the content?

user1657555

Posted 2019-03-10T22:21:07.980

Reputation: 1

No answers