java.net.HttpURLConnection throws "Received authentication challenge is null"

by Matthias » Mon, 31 Aug 2009 20:57:58 GMT


Sponsored Links
 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. I write an OAuth
param string to the Authorization header, but this works fine on other
occasions. There is nothing peculiar about my request apart from that.

Any idea what this means, what is causing this and how to get around
it? This works fine with Sun's Java implementation, so I guess it's a
problem with Apache Harmony?

Thanks!
Matthias
--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. Difference between Android application and Android service

Hi Guys

Fundamental question, is there any difference in the functionality of
a service and an application? I know there is minimum user interaction
involved with a service but can a service also perform read write
operations for example to the sdcard?
Can a service invoke other services or applications?

Thanx
Asym

-- 

2. do not get corrent value from window.innerHeight/innerWidth

hello.

I deveopment web application for android chromelite.
In web page is not set viewport,
I get html's height/width from window.innerHeight/innerWidth all of
the time though pinch in/ pinch out.
I want window size.
is there solution?

-- 

3. what are 9-patch bad patches?

4. Is it possible to use DDMS to send mock locations to a physical device?

5. How do I initiate/terminate xml-defined SurfaceView upon a button push?

6. MediaPlayer to play Multicast (igmp) medias?

7. Testing in app billing, all purchases end up cancelled