Upload directly using a form, but the callback fails. file_get_contents (& #039; php: input & #039;) cannot obtain data on the callback page. {code ...} solve the problem of using the form for direct upload, but the callback fails. file_get_contents ('php: // input') cannot obtain data on the callback page.
{"error":"{\"callback_url\":\"http://www.7th.cc/myadmin/spadmin/callback\",\"callback_bodyType\":\"application/x-www-form-urlencoded\",\"callback_body\":\"name=FlNLrzDBpITy5Z7HDYBI_sN-13Ie&hash=FlNLrzDBpITy5Z7HDYBI_sN-13Ie&uid=123\",\"token\":\"QBox il8FUwtEUAb_dsm1pIRhkiduQdpTZ_e0zWrYkl_G:eLvvyowMcGJsoC0Zd2i4kfZbVsk=\",\"err_code\":200,\"error\":\"unexcepted response\"}"}
Solution
Reply content:
Directly upload the file using a form, but the callback fails. file_get_contents ('php: // input') cannot obtain data on the callback page.
{"error":"{\"callback_url\":\"http://www.7th.cc/myadmin/spadmin/callback\",\"callback_bodyType\":\"application/x-www-form-urlencoded\",\"callback_body\":\"name=FlNLrzDBpITy5Z7HDYBI_sN-13Ie&hash=FlNLrzDBpITy5Z7HDYBI_sN-13Ie&uid=123\",\"token\":\"QBox il8FUwtEUAb_dsm1pIRhkiduQdpTZ_e0zWrYkl_G:eLvvyowMcGJsoC0Zd2i4kfZbVsk=\",\"err_code\":200,\"error\":\"unexcepted response\"}"}
Solution
Obviously, php reports an error.
Http://blog.csdn.net/guoer9973/article/details/50461806