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

by Mark Murphy » Mon, 31 Aug 2009 21:34:40 GMT


Sponsored Links
 > I am using HttpURLConnection to send a GET request to a server. Upon

Off the cuff, it would seem as though you're getting a 401 Unauthorized
error, due to a malformed Authorization header.


That's a distinct possibility.

-- 
Mark Murphy (a Commons Guy)
 http://commonsware.com 
Android App Developer Books:  http://commonsware.com/books.html 



--~--~---------~--~----~------------~-------~--~----~



Other Threads

1. using appendChild and replaceChild

Okei, I fix it! Android browser don't let you the same GET all the
time, so I use a random to add a ?STRING to the GET and then we have
diferent GETs ;)

thats all, clear!



--~--~---------~--~----~------------~-------~--~----~

2. is it possible to get realtime gps values while not in a mapview?

Hi,

I was wondering if it is possible to start the gps receiver on the phone if
the current activity is not a mapactivity. I am displaying a listview and
when I start the gps I get the last location found correctly, however the
gps indicator never appears on top of the phone's display even if I wait or
restart this activity. The location of the gps stays the some.
The gps indicator appears on top only if I enter an activity where a mapview
is displayed. If I wait in the map activity for a little while then If I go
back to my other activity and request the location there, then the location
is updated with the last value that it had before exiting the map view. It
never gets updated If I move around after that, though..

Please let me know first of all if this is possible, I will provide a
snippet of code later for people here to tell me if I am doing something
wrong.

Also, is it possible to somehow be notified with a callback as soon as the
location is updated?

Thank you in advance!!

--~--~---------~--~----~------------~-------~--~----~

3. How to use the aidl by the eclipse step by step?

4. AIDL interface and implementation in two different APK

5. Cannot execute javascript function after loading html content with "loadDataWithBaseURL" method

6. Cannot execute javascript function after loading html content with "loadDataWithBaseURL" method

7. MINA, slf4j and Android