Re: [Htmlparser-user] handling 302 status
Brought to you by:
derrickoswald
From: Derrick O. <Der...@Ro...> - 2006-03-29 23:36:51
|
You have to register as an ConnectionMonitor on the ConnectionManager. The HTTP response from the HttpURLConnection passed in the postConnect () call should be 3xx in those cases. Antony Sequeira wrote: >Hi > >In my code I have a http fetcher that puts received content into a >file for a set of urls. The content includes all the headers received >(the complete stream of data for a request from the server). > >At a later time I parse it using the html parser. This part of the >code seems to work, in the sense I am able to extract links in those >pages using the parser. > >My question is - how do I get hold of the http status code , >specifically when it is a 302 kind and then get hold of the new >location. > >Thanks, >-Antony > > > > |