我做的URL进行文件的file_get_contents做汽车url_decode
file_get_contents('https://xyz.com/login.php?app_data=%7B%22page%22%3A%22details%22%2C%22id%22%3A%2273%22%2C%22crp%22%3A%221%22%2C%22cip%22%3A%22%22%7D');
如下因素,但我在另一端接收它作为
app_data={"page":"details","id":"73","crp":"1","cip":""}
,而不是
app_data=%7B%22page%22%3A%22details%22%2C%22id%22%3A%2273%22%2C%22crp%22%3A%221%22%2C%22cip%22%3A%22%22%7D'
另一端的代码:
if(isset($_GET['url']))
{
log($_GET['url']);
}
log
只写入文件。
回答:没有,但$_GET
确实。
你是如何接收它的?用'$ _GET ['app_data']'? – 2012-04-07 10:32:22