Re: [android-developers] Re: java.net.HttpURLConnection throws Received authentication challenge is null

2010-10-21 Thread Sam Chiu
Hi matthias I'm using an token string as Authorization header to make a HTTP GET request. It works fine, but recently it meets the same problem (sometimes). Could you share us when the OAuth verifier code would be required? And How do you prepare this verifier code? Thanks a lot Sam 2009/8/31

[android-developers] Re: java.net.HttpURLConnection throws Received authentication challenge is null

2009-08-31 Thread Mark Murphy
I am using HttpURLConnection to send a GET request to a server. Upon reading the response code, the Android implementation of HttpURLConnection.doRequestInternal() throws an exception: java.io.IOException: Received authentication challenge is null I don't even get what the error is trying

[android-developers] Re: java.net.HttpURLConnection throws Received authentication challenge is null

2009-08-31 Thread matthias
Hi Mark, you were right: it was a 401 causing this. The odd thing being, I got this exception *before* I was actually able to check for a 401 (it was thrown in getResponseCode()). But now knowing this error represents a 401, I was able to fix it in my code (I was not sending the OAuth verifier