以下是来自Bitbucket的POST请求:
Time: Mon, 20 Aug 12 13:36:46 -0700
Source ip: 63.246.22.222
Headers (Some may be inserted by server)
UNIQUE_ID = UDKf3tBx6hIAAKS7ikQAAAAA
HTTP_HOST =
posttestserver.comCONTENT_LENGTH = 1010
CONTENT_TYPE = application/x-www-form-urlencoded
HTTP_ACCEPT_ENCODING = gzip, deflate
HTTP_USER_AGENT =
Bitbucket.orgREMOTE_ADDR = 63.246.22.222
REMOTE_PORT = 18473
GATEWAY_INTERFACE = CGI/1.1
REQUEST_METHOD = POST
QUERY_STRING = dump&html&dir=dylan
REQUEST_URI = /post.php?dump&html&dir=dylan
HTTP_CONNECTION = close
REQUEST_TIME = 1345495006
Post Params:
key: 'payload' value: '{"repository": {"website": "", "fork": false, "name": "coffee-script", "scm": "git", "absolute_url": "/detkin/coffee-script/", "owner": "detkin", "slug": "coffee-script", "is_private": false}, "commits": [{"node": "325475d680f3", "files": [{"type": "modified", "file": "README"}], "branch": "master", "utctimestamp": "2012-08-20 20:36:42+00:00", "author": "Dylan Etkin", "timestamp": "2012-08-20 22:36:42", "raw_node": "325475d680f398fa027ef2ef1adc1dfd0993d19b", "parents": ["2c2e016e53ff"], "raw_author": "Dylan Etkin <
[email protected]>", "message": "blah\n", "size": -1, "revision": null}], "canon_url": "https://bitbucket.org", "user": "detkin"}'
Empty post body.
------------------------------------------
我在PHP下尝试了$_POST['json'],$_POST['value'],file_get_contents('php://input'),$HTTP_RAW_POST_DATA 都无法获取POST的body内容...已经搜索了两天了,求帮助~~