1, I tried this URL in the browser request is not a problem, but with file_get_contents error
2, because the URL with the parameters of a lot of characters, so I used UrlEncode format, but the request will not open
3, need to pass parameters to this URL interface, some parameters with = ' | | These characters, maybe this is the reason, but what to do with it.
4, this is the URL and the parameters with Exp:
test.php?exp=pid== "mm_26632469_12350536_47102560"%20| | %20pid== "mm_26632469_12350536_47114110" ....
Reply content:
1, I tried this URL in the browser request is not a problem, but with file_get_contents error
2, because the URL with the parameters of a lot of characters, so I used UrlEncode format, but the request will not open
3, need to pass parameters to this URL interface, some parameters with = ' | | These characters, maybe this is the reason, but what to do with it.
4, this is the URL and the parameters with Exp:
test.php?exp=pid== "mm_26632469_12350536_47102560"%20| | %20pid== "mm_26632469_12350536_47114110" ....
urlencodeThe correct use of
'http://www.test.com/path/to/test.php?a='.urlencode('axxxxxxx').'&b='.urlencode('bxxxxxxx').'&c='.urlencode('cxxxxx')