java - Apache HttpClient: Location of redirected URLs -


i'm using apache's httpclient (for java) load url getting redirected http 301 response. news, httpclient follows redirect automatically, , don't need manually loop through redirects.

the part haven't figured out final destination. because i'm getting headers of final successful (http 200) query, there no location header. since redirect occurs behind scenes of httpclient.execute(..), code doesn't know whether there has been redirect, , has redirected to.

how vital piece of information? need recode in java.net classes info?

for record, i'm using apache httpclient on android, , need backward compatibility android 1.6.

all hail redirecthandler (helps read docs)


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -