更新时间:2023-01-03 18:15:41
Does this maybe work?
$url = 'http://host/a b.img'; $url = str_replace(" ", '%20', $url); $ch = curl_init(); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); echo $ret = curl_exec($ch);
PHP curl bad request 400 - mapquest地理编码
curl return 400 bad request(url with spaces)
400 - Bad Request in Curl