Debanjan Dhar Debanjan Dhar - 21 days ago 5
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?

Answer

You should check this.

Also, take a look at this

The function you are looking for, should be:

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