Debanjan Dhar Debanjan Dhar - 1 year ago 156
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 Source

You should check this.

Also, take a look at this

The function you are looking for, should be:

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