I read the sections pertaining to cookies, and monitored what's going on (with the debug on). It seems a session is being established correctly (same cookie being sent as was accepted). my cookie for domain www.blah.comhas a path of '/somePath'. Question...when I come to post my form, the target for my form is '/someOtherPath', so the cookie is never sent...is this a problem? but it seems to work fine, as i get a redirect location (which i don't get if i put in incorrect username/password..so i'm thinking the cookies are working as expected)..but then when i try to follow the redirect is when it gives me an error. I don't see anything wrong with the debug statements. Are there any common gotchas when it comes to redirects/cookies/etc? Thanks in advance!!
On 6/3/07, Contay <[EMAIL PROTECTED]> wrote:
thanks for the response...i will pay more attention to the primer. On 6/3/07, Roland Weber <[EMAIL PROTECTED]> wrote: > > Hello, > > > Hello, I have used HttpClient on one other program for logging into a > site > > (using post), and it worked perfectly (after following a redirect > after the > > post). > > I am having problems doing the same exact thing for another site. > > There is no general solution to this problem. Every site can have a > different login procedure, different session handling, and whatever. > Please study our Client HTTP Programming Primer: > http://wiki.apache.org/jakarta-httpclient/ForAbsoluteBeginners > > Give special care to the required parameters and the cookie handling. > > good luck, > Roland > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
