kmvan
V2EX  ›  微博

curl 已经成功发送信息到渣浪微博 api,并且成功发出微博,但没有任何返回?

  •  
  •   kmvan · Jan 23, 2015 · 9688 views
    This topic created in 4317 days ago, the information mentioned may be changed or developed.

    使用的接口是 /2/statuses/upload,sdk 是渣浪微博的 PHP SDK。

    可以确定的情况是:

    • 鉴权成功
    • 微博发送成功,并已在渣浪中显示

    但返回信息为 NULL,一直追踪到发送微博 curl 后,确定是 curl 返回了 NULL。

    那么问题就来了,有些服务器返回的是 NULL,有些是正常。导致返回 NULL 的原因会有哪些方面呢?是渣浪 api 没有发出任何返回,还是服务器没收到返回?

    bearcat001
    bearcat001
    Jan 24, 2015 via iPhone
    1
    可能信息在http头里,比如http code
    aoom
    aoom
    Jan 24, 2015
    2
    难怪觉得读的怪怪的,新浪就新浪,渣你妹。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4486 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 62ms · UTC 07:58 · PVG 15:58 · LAX 23:58 · JFK 02:58
    ♥ Do have faith in what you're doing.