[Htmlparser-user] Cookie handling
Brought to you by:
derrickoswald
From: Gavin G. <ga...@br...> - 2007-01-30 10:59:55
|
Hi, I hope this is the correct place to ask the mailing list is looking pretty quiet according to sourceforge's mail archives :) I've ran into difficulty parsing certain sites that attempt to set cookies in an effort to read them later. The sites in question generally spit back pages saying that your browser or whatever is misconfigured and deny access. I assume this is simply because they can't read the cookies that should've been set and I wondered if there was an option to do so somewhere. I'm not trying to set *actual* cookies which most of the examples I've seen indicate how to do, but just allow pages to dump cookies and read them later. Is this possible or (possibly) unrealistic and difficult to implement? The current code I've got is: ... ConnectionManager manager = Parser.getConnectionManager(); manager.setRedirectionProcessingEnabled(false); manager.setCookieProcessingEnabled(true); Parser parser = new Parser(...); ---- etc. Cheers for any responses! Gavin. |