java 获取webapi响应_如何从rest api回调调用获得响应

我在php中有一个sms api,我打电话发送短信 . 我传递一些json和url回调来获取响应状态并发送短信 .

之后服务器调用我的回调网址,但我无法获得响应正文 . $ _GET和$ _POST为空......文档不存在 . 它应该有一些json . 有人能帮我吗?提前致谢

REQUEST_URI => /dev/egoi-resp.php

GET => Array

(

)

POST => Array

(

)

SERVER => Array

(

[PATH] => /sbin:/usr/sbin:/bin:/usr/bin

[PWD] => /usr/local/cpanel/cgi-sys

[SHLVL] => 0

[SCRIPT_NAME] => /dev/egoi-resp.php

[REQUEST_URI] => /dev/egoi-resp.php

[QUERY_STRING] =>

[REQUEST_METHOD] => POST

[SERVER_PROTOCOL] => HTTP/1.1

[GATEWAY_INTERFACE] => CGI/1.1

[REMOTE_PORT] => 45721

[SCRIPT_FILENAME] => /home/nchaves/public_html/dev/egoi-resp.php

[SERVER_ADMIN] => webmaster@nunochaves.com

[CONTEXT_DOCUMENT_ROOT] => /home/nchaves/public_html

[CONTEXT_PREFIX] =>

[REQUEST_SCHEME] => http

[DOCUMENT_ROOT] => /home/nchaves/public_html

[REMOTE_ADDR] => 94.46.251.59

[SERVER_PORT] => 80

[SERVER_ADDR] => 185.11.164.13

[SERVER_NAME] => nunochaves.com

[SERVER_SOFTWARE] => Apache

[SERVER_SIGNATURE] =>

[LD_LIBRARY_PATH] => /usr/local/apache/lib

[CONTENT_LENGTH] => 166

[HTTP_CONNECTION] => close

[HTTP_HOST] => nunochaves.com

[HTTP_USER_AGENT] => Java/1.7.0_25

[HTTP_ACCEPT] => application/json

[CONTENT_TYPE] => application/json

[UNIQUE_ID] => VFeXf7kLpA0AB@tWLxMAAADG

[FCGI_ROLE] => RESPONDER

[PHP_SELF] => /dev/egoi-resp.php

[REQUEST_TIME_FLOAT] => 1415026559.7367

[REQUEST_TIME] => 1415026559

)

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值