The past few days my twitter application has stopped working on both of my websites. I’m using classic asp as the language and this function from Scott DeSapio’s OAuth library no longer works. The responseText I receive is just “?”, no json or xml response. Everything was working fine a few days ago but now it’s completely useless. Any help?
Public Sub Send() Dim strRequestURL : strRequestURL = Get_RequestURL() On Error Resume Next Dim objXMLHTTP : Set objXMLHTTP = Server.CreateObject("Msxml2.ServerXMLHTTP.6.0") objXMLHTTP.setTimeouts OAUTH_TIMEOUT_RESOLVE, OAUTH_TIMEOUT_CONNECT, OAUTH_TIMEOUT_SEND, OAUTH_TIMEOUT_RECEIVE objXMLHTTP.Open m_strRequestMethod, strRequestURL, False objXMLHTTP.SetRequestHeader "Content-Type","application/x-www-form-urlencoded" objXMLHTTP.Send() If Err.Number <> 0 Then Select Case CStr(Err.Number) Case CStr(OAUTH_ERROR_TIMEOUT) Response.Redirect m_strTimeoutURL Response.End Case Else m_strErrorCode = Err.Number End Select Else m_strResponseText = objXMLHTTP.ResponseText End If Set objXMLHTTP = Nothing On Error Goto 0 End Sub
The objXMLHTTP.ResponseText just contains “?” and not a error or anything else. I’ve been fiddling with this and I can’t see where the issue is. I know that you guys have made HTTP standards more strict but it looks like I’m sending all the correct/valid HTTP headers. Content-Length is generated correctly, the server time is correct, I’ve checked the hostname in the headers as well and that’s fine.