You should check this.
Also, take a look at this
The function you are looking for, should be:
curl_setopt($ch, CURLOPT_POSTFIELDS, 'something');