Sending data in a POST


#1

Trying to send the following with the web call, but can’t find how to send data, the auth part is easy

curl --header “Authorization: Bearer FUEfzjQBNGuFw3NWB9T7oNfJLMWJq_t0MmGvsASl87A1ow7XEZ8ck_V2gsR4xK9P1ciFjb1DPmuT8WWAcp8wxg==” -X POST -d ‘{“mode”:“backup”,“backup_reserve_percent”:15}’ http://192.168.33.5/api/operation

Any idea how i send the post data?


#2

Thanks to Web request with json body i managed to work it out


#3

How did you get this to work? I have been unable to get web requests to work when I have to pass an authorization token through in the header. I figured out the part of using separate variables for each data item.