How to send -d data via wp_remote_request ?
-
I’m trying to fix problems with a currently semi working API client
The syntax in the documentation is :curl -X POST 'https://api-free.deepl.com/v2/translate' \ -H 'Authorization: DeepL-Auth-Key [yourAuthKey]' \ -d 'text=Hello%2C%20world!' \ -d 'target_lang=DE'
The wp_remote_request body argument serves body content as a single string and not as a series of -d ‘key=value’
Is there any way to force a request via WordPress functions to send body via this syntax ?
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘How to send -d data via wp_remote_request ?’ is closed to new replies.