Using Http header, I see it's a POST with a simple URL, with nothing else sent (not that I can see):
http://example.com/abc.jhtml?action=getValue&itemValue=ding&sCode=733-081&time=new%20Date()
So I use curL in php:
$date=date('Y-m-d H:i:s');
$myURL="http://example.com/abc.jhtml?action=getValue&itemValue=ding&sCode=733-081&time=".urlencode($date);
$ch = curl_init();
curl_setopt($ch, CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch, CURLOPT_URL, $myURL);
curl_setopt($ch,CURLOPT_POST, 0);
curl_setopt($ch,CURLOPT_POSTFIELDS, "");
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$content=curl_exec($ch);
echo $content;
I end up getting this line:
{"result":{},"status":"fail","code":0,"msg":"server busy, try again!"}
what did I do wrong? anybody can help?
thanks
This post has been edited by Dormilich: 17 September 2012 - 11:59 AM
Reason for edit:: please use example.com or example.org for generic domains

New Topic/Question
Reply


MultiQuote






|