in reply to Re: WWW::Mechanize::Firefox save_url doesn't send cookies
in thread WWW::Mechanize::Firefox save_url doesn't send cookies
I played around some more. My last report was erroneous, adding nsIWBP.PERSIST_FLAGS_FORCE_ALLOW_COOKIES does fix the problem! I had thought it didn't as I was updating the old .pm file not the new version, so my changes weren't even executing (doh!).
So the following lines in save_url fixes it and now it works great!!!! Thanks for the great perl module, opens up a whole new world of mech'ing.
obj_Persist.persistFlags = flags | nsIWBP.PERSIST_FLAGS_FROM_CACHE;
obj_Persist.persistFlags = obj_Persist.persistFlags | nsIWBP.PERSIST_FLAGS_FORCE_ALLOW_COOKIES;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: WWW::Mechanize::Firefox save_url doesn't send cookies
by Corion (Patriarch) on Mar 08, 2011 at 22:58 UTC | |
by tcordes (Novice) on Mar 09, 2011 at 19:31 UTC |