Debanjan Dhar Debanjan Dhar - 3 months ago 42
PHP Question

Curl Cmd to Curl php Conversion

curl -X POST -d 'something'

What curl function of php can be used to set the '-d' of the above curl command line command?


You should check this.

Also, take a look at this

The function you are looking for, should be:

curl_setopt($ch, CURLOPT_POSTFIELDS, 'something');