1. I tried to request this url in the browser, but there was no problem when I used file_get_contents. 2. Because the url contains many characters, I used urlencode format, but the request cannot be opened. 3. parameters need to be passed to this url interface. Some parameters include '| these characters, possibly... 1. I tried this url in the browser. The request is okay, but an error occurs when file_get_contents is used.
2. Because url parameters contain many characters, I have used the urlencode format, but the request cannot be opened.
3. You need to pass parameters to this url interface. Some parameters include = '| these characters. This may be the reason, but how can this problem be solved?
4. This is the url and the parameter 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. The request is okay, but an error occurs when file_get_contents is used.
2. Because url parameters contain many characters, I have used the urlencode format, but the request cannot be opened.
3. You need to pass parameters to this url interface. Some parameters include = '| these characters. This may be the reason, but how can this problem be solved?
4. This is the url and the parameter exp:
Test. php? Exp = pid = "mm_26632469_12350536_47102560" % 20 | % 20pid = "mm_26632469_12350536_47114110 "....
Urlencode
Correct usage
'Http: // www.test.com/path/to/test.php? A = '. urlencode ('axxxxxxx').' & B = '. urlencode ('bxxxxxxxx').' & c = '. urlencode ('cxxx ')