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 matthias <m.kaepp...@googlemail.com> > > 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 code which was required at this point). > > Thanks! > > On Aug 31, 3:33 pm, "Mark Murphy" <mmur...@commonsware.com> wrote: > > > 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 to tell me. > > > > Off the cuff, it would seem as though you're getting a 401 Unauthorized > > error, due to a malformed Authorization header. > > > > > This works fine with Sun's Java implementation, so I guess it's a > > > problem with Apache Harmony? > > > > That's a distinct possibility. > > > > -- > > Mark Murphy (a Commons Guy)http://commonsware.com > > Android App Developer Books:http://commonsware.com/books.html > --~--~---------~--~----~------------~-------~--~----~ > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers-unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -~----------~----~----~----~------~----~------~--~--- > > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en