not sure what went wrong, but you can follow redirect yourself. take the Location header out and make a new connection to it.
irreputable
2010-07-17 06:31:37
not sure what went wrong, but you can follow redirect yourself. take the Location header out and make a new connection to it.
A few months ago I was trying to do the exact same thing!
Basically, don't use HttpURLConnection
. Instead, use HttpClient
and HttpGet
in the org.apache.http
package which are part of the Android SDK.
Unfortunately I don't have my source code to provide an example, but hopefully that'll set you in the right direction.