tags:

views:

148

answers:

1
+3  A: 

you are passing a string with CURLOPT_POSTFIELDS. Try using an array instead. Ex: array( 'anything' => 'WORKS' );

Rob
Just tested it- Didn't work.
Doug
What status code is returned?echo curl_getinfo( $ch, CURLINFO_HTTP_CODE );
Rob
Warning: curl_getinfo(): 1 is not a valid cURL handle resource in domain.com/code-lab/curl.php on line 49Line 49 is echo curl_getinfo( $ch, CURLINFO_HTTP_CODE );
Doug
add the line just after your curl_exec() but before curl_close()
Rob
After adding that, I see the number "200".
Doug
what to do next*
Doug