I cant figure out how to get the Content-Length header from the response from a server: import Network.HTTP.Conduit main do headers <- getHeadersAm not able to get a response from Async Ajax calls in Android 4.2 devices. Everytime it gets timed out xhr .ajax( type: GET, url: url, async setRequestHeader("Content-Type", "application/json, charsetutf-8"), xhr. responseText: undefined Youre getting it passed into your error handler because thats the first argument of jQuerys ajax error callback. It seems like youre getting a successful response from the server - its got a 200 status QuestionFocus Focus on common problems. Skip to content.