Answer the question
In order to leave comments, you need to log in
Nginx 504 Gateway Timeout when running with CURL?
put the server on NginX for the first time, everything works, except for CURL. this code fails on timeout
if( !function_exists( 'curl_init' ) )
{
die( "Curl PHP package not installed!" );
}
/** Initializing CURL **/
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, XMLRPC_URL );
curl_setopt( $ch, CURLOPT_HEADER, false );
curl_setopt( $ch, CURLOPT_HTTPHEADER, array("Content-Type: text/xml") );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $data );
/** Now execute the CURL, download the URL specified **/
$response = curl_exec( $ch );
Answer the question
In order to leave comments, you need to log in
1. shoaibmir.wordpress.com/2009/03/10/using-curl-for-xmlrpc-calls/
2. phpxmlrpc.sourceforge.net
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question