V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
iyuyue
V2EX  ›  问与答

关于Bitbucket的POST请求处理

  •  
  •   iyuyue · 2013-04-26 15:21:30 +08:00 · 2425 次点击
    这是一个创建于 4188 天前的主题,其中的信息可能已经有所发展或是发生改变。
    以下是来自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.com
    CONTENT_LENGTH = 1010
    CONTENT_TYPE = application/x-www-form-urlencoded
    HTTP_ACCEPT_ENCODING = gzip, deflate
    HTTP_USER_AGENT = Bitbucket.org
    REMOTE_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内容...已经搜索了两天了,求帮助~~
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1323 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 17:18 · PVG 01:18 · LAX 10:18 · JFK 13:18
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.