Hi John,<br><br>Thank you for your suggestions! I didn't have a chance to try them today at work. I will try them on Mon. I'm on Windows and I'm using the Mozilla Firefox browser, but I could use the explorer as well.<br><br>Thank you!<br>Irina.<br><br><br><b><i>John J Lee <jjl@pobox.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> On Thu, 3 Aug 2006, John J Lee wrote:<br>[...]<br>> 2. Tell twill where to find your "cookie jar" with the "load_cookies"<br>> command.<br>[...]<br><br>If you don't have the original password, this is what you have to do, of <br>course.<br><br>Unfortunately, it looks like twill doesn't support loading Firefox or <br>Internet Explorer cookies yet (it can load and save cookies, but only in a <br>special format not used by browsers). ClientCookie and mechanize can load <br>Firefox and IE cookies, however. I'll try and point you in the right
<br>direction, but first: Are you on Windows? Which browser are you using?<br><br><br>Titus -- why not have twill's load_cookies load the IE cookies if you're <br>running on Windows and there's no cookie jar argument (by instantiating an <br>MSIECookieJar and using .load_from_registry())? That's the preferred way <br>to load IE cookies (always assuming that MSIECookieJar still works -- it <br>parses an undocumented MS file format...). If there's an argument, I <br>think twill should attempt to .load() using each class in turn -- <br>LoadError tells you it's the wrong format for that class (MSIECookieJar, <br>MozillaCookieJar, LWPCookieJar -- order shouldn't matter). If you add <br>support for Firefox cookie saving, you should also add the warnings about <br>this from the mechanize docs (IIRC, that a running Firefox may clobber <br>your changes, and you should back up any cookie files that contain <br>important cookies). I think save_cookies without an argument should
use <br>the filename and file format that were used on the previous load_cookies. <br>Finally, note MSIECookieJar does not support saving, and iteration won't <br>cause loading of cookies unless .delayload is true. The delayload thing <br>can be significant for MSIECookieJar because each cookie is in its own <br>little file (or something similar, I forget), so I suggest having <br>delayload=False until somebody asks for show_cookies, at which point you <br>should call .load_all_cookies() before iterating.<br><br><br>John<br><br><br>-------------------------------------------------------------------------<br>Take Surveys. Earn Cash. Influence the Future of IT<br>Join SourceForge.net's Techsay panel and you'll get the chance to share your<br>opinions on IT & business topics through brief surveys -- and earn cash<br>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV<br>_______________________________________________<br>wwwsearch-general
mailing list<br>wwwsearch-general@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/wwwsearch-general<br></blockquote><br><p> 
                <hr size=1>Do you Yahoo!?<br> Next-gen email? Have it all with the <a href="http://us.rd.yahoo.com/evt=42241/*http://advision.webevents.yahoo.com/handraisers"> all-new Yahoo! Mail Beta.</a>