How to update values with php curl How to update values with php curl curl curl

How to update values with php curl


Reading from this cURL guide from 11. Custom Request Elements, You can use POST/PUT method by using cURL -D then add the values.

"It should be noted that curl selects which methods to use on its own depending on what action to ask for. -d will do POST.."

There's also a sample provided in this SO thread that might be of help:

curl -X PUT -d arg=val -d arg2=val2 localhost:8080