flyerhzm/contactlist — Issue #14: web api invoke return null
Author: lxn179208
Created: 2011-10-26 08:51:23+00:00
State: open

using php curl invoke:
$url = "https://123.183.209.87:8443/ContactListService/contacts";
$parameters = "account=lxn179208@163.com&password=05585681179&type=163";

$ch = curl_init( );
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, false );
curl_setopt( $ch, CURLOPT_URL, $url );
curl_setopt( $ch, CURLOPT_POST, 1 );
curl_setopt( $ch, CURLOPT_POSTFIELDS, $parameters);
curl_setopt( $ch, CURLOPT_TIMEOUT, TIMEOUT );
$contents = curl_exec( $ch );
curl_close( $ch );
echo $contents;
but return null ,how to solve?