V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
kmvan
V2EX  ›  微博

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

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

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

    可以确定的情况是:

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

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

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

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