Using PHP curl for Reports API

Using PHP curl for Reports API

Hi !
I tried to use php code to connect to Reports API, but I'm getting a 505 error 

Array ( [headers] => Array ( [Date] => Sat, 26 Feb 2011 13:02:00 GMT [Server] => - [Connection] => close ) [body] => [info] => Array ( [url] => http://reportsapi.zoho.com/api/****/****?ZOHO_ACTION=EXPORT&ZOHO_OUTPUT_FORMAT=JSON&ZOHO_ERROR_FORMAT=XML&ZOHO_API_KEY=mykey&ticket=tiketvalue&ZOHO_API_VERSION=1.0&ZOHO_SQLQUERY=Some+sql+query  [http_code] => 505 [header_size] => 110 [request_size] => 1574 [filetime] => -1 [ssl_verify_result] => 0 [redirect_count] => 0 [total_time] => 0.523 [namelookup_time] => 0.01 [connect_time] => 0.259 [pretransfer_time] => 0.259 [size_upload] => 0 [size_download] => 0 [speed_download] => 0 [speed_upload] => 0 [download_content_length] => 0 [upload_content_length] => 0 [starttransfer_time] => 0.523 [redirect_time] => 0 ) [curl_handle] => Resource id #1 ) 
The same url is working properly when I used XMLPOST method in ASP and returned me the JSON result

Is there some thing preventing usage of curl in Reports API?
Is there any sample code in PHP on how to use Reports API?
Thanks and Regards
Edward Anil Joseph