I've used HttpClient to log into several web sites that try to make it hard to write programs that automatically log in (maybe Yahoo is trying to make it hard). One invaluable tool I've found is the LiveHTTPHeaders mozilla plugin (http://livehttpheaders.mozdev.org) with Mozilla 1.5 or later. Then when you log in using Mozilla, it displays a capture of all HTTP headers in both the request and response. This helps out a lot in trying to "reverse engineer" a web site's login scheme. Some web sites do nasty things like set special cookies in images, and then doesn't let you log in without that cookie. I know, this prevents people from running their browser in images-off mode, but this particular site used a captcha (see http://www.captcha.net/) thingie anyway.
Hope this helps. -Chris ----- Original Message ----- From: "Michael Becke" <[EMAIL PROTECTED]> To: "Commons HttpClient Project" <[EMAIL PROTECTED]> Sent: Wednesday, April 28, 2004 11:35 PM Subject: Re: Yahoo login with Httpclient > Well, I've tried a variety of things, but I cannot successfully login > to yahoo. Attached is the code that I've been using. It includes two > methods, one to simulate logging in from a browser with JavaScript > turned off, and another to simulate with JS on. Perhaps someone else > can figure it out from here. > > Mike > > ---------------------------------------------------------------------------- ---- > > > On Apr 28, 2004, at 1:14 PM, Michael Becke wrote: > > >> difficult to work around (see the redirect guide). I am sure it > >> should not be that difficult to form-based login with get > >> my.yahoo.com working. Give it another try > > > > Yes, one wouldn't think so :) I took a look at this last night, and > > it seems that yahoo does some weird stuff. In particular they MD5 the > > password using JavaScript. They do support logging in without > > Javascript, but I had some difficulty getting it to work in > > HttpClient. It was late last night when I tried this, so I could just > > be missing something obvious. I will try again tonight, and post my > > test code. > > > > Mike > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: > > [EMAIL PROTECTED] > > For additional commands, e-mail: > > [EMAIL PROTECTED] > > > > ---------------------------------------------------------------------------- ---- > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]