Vbscript and "failed"

瀏覽次數:31 次
跳到第一則未讀訊息

Alex Perco

未讀,
2013年9月18日 中午12:40:472013/9/18
收件者:supertweet-...@googlegroups.com
Hi, 

I don't know why this is not working, always returns "failed". 

strUsername and strPassword are ok.

Any help? Clues?

Thanks in advance.

Function SendToTwitter(strMessage,strUsername, strPassword) 

     Dim objHTTP
     
        Set objHTTP = CreateObject("Microsoft.XMLHTTP") 
      
          objHTTP.open"POST", "http://api.supertweet.net/1.1/statuses/update.json", false, strUsername, strPassword
          objHTTP.setRequestHeader"Content-Type", "application/x-www-form-urlencoded"
          objHTTP.setRequestHeader"WWW-Authenticate", "Basic"

          objHTTP.send"status=" & strMessage
           
          SendToTwitter = objHTTP.responseText
          
          Set objHTTP = nothing'Release the object 

      
     Set objHTTP = nothing'Release the object 
      
EndFunction

Mr Blog

未讀,
2013年9月21日 晚上11:58:512013/9/21
收件者:supertweet-...@googlegroups.com
Try examining the response to see the HTTP error and other headers/messages. They should tell you what's wrong.
回覆所有人
回覆作者
轉寄
0 則新訊息