-1
我有一個用PHP編寫的腳本,但我需要將它製作成android應用程序。我如何得到相同的結果?在Android上模擬此捲曲代碼
$url = "http://54.193.106.113/ING004/android1/WebServer/Web/sogame/newControl/nmMail/getMailList? sign=".strtoupper($sign);
$connection = curl_init($url);
curl_setopt($connection, CURLOPT_POSTFIELDS, $finalData);
curl_setopt($connection, CURLOPT_RETURNTRANSFER, true);
curl_setopt($connection, CURLOPT_ENCODING, "gzip");
$result = curl_exec($connection);
$err = curl_error($connection);
$baseObj = json_decode($result, true);
curl_close($connection);
嗯,這可能正是我所需要的。謝謝! – Nifty62 2014-12-03 23:47:09