我正在对 URL 进行以下操作
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
确实如此。