Home >Backend Development >PHP Tutorial >表单上传后,回调失败

表单上传后,回调失败

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-06-06 20:45:531128browse

用表单直接上传,但是回调的时候失败,file_get_contents('php://input')这个在回调页面也获取不到数据

<code>{"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\"}"}
</code>

求解决

回复内容:

用表单直接上传,但是回调的时候失败,file_get_contents('php://input')这个在回调页面也获取不到数据

<code>{"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\"}"}
</code>

求解决

很明显,php报错了。

http://blog.csdn.net/guoer9973/article/details/50461806,看下这个就ok了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn