Dear Andrea,
HTTP::Cookies has two submodules. one for Mozilla browsers and one for Microsoft browsers. Unfortunately the MS version does not support saving the cookies. (BTW - everybody knows, Firefox is the better browser ;-) ).
I have not used these modules, just found them on cpan. If you have not already discovered it, search.cpan.org is an excellent way to find the modules you need (although wading through the volume can be a bit of a challenge). A search for Cookies Microsoft produces over a thousand results, perhaps one of them will be useful...
Cheers & Good Luck
Peter
Andrea Setti wrote:
Thank you for the answer.
I had a look th WWW::Mechanize and it does almost everything that i need.
The only thing i cannot understand is: how can i forward the cookie to the real browser? I need to fetch it from the real login page and then forward it to the referrer...
-----Messaggio originale-----
Da: Bret Swedeen [mailto:[EMAIL PROTECTED] Inviato: luned́ 28 febbraio 2005 19.39
A: Andrea Setti
Oggetto: Re: Help!! I'm stuck! - using LWP for single sign on purposes
As Andy Lester mentioned in his previous response...use WWW::Mechanize as it
will make this type of task much easier. Also, since you are authenicating
with a username and password, that transaction might occur over https. In
that case you will also need the mod Crypt::SSLeay to handle the SSL piece
of communication. Finally, don't forget to enable cookies in your code. Near the top add the
line "use HTTP::Cookies;" Spend some time with WWW::Mechanize, it is well
worth the time spent.
On 28 Feb 2005 at 15:51, Andrea Setti wrote:
hi list!
i need your help:
i use LWP to fetch a login page, that i need to fill out and re-send to the server in order to authenticate an user in a Single Sign-On environment.
i need to fetch some input type's values from the original login page, put username & password and then send everything via POST to the server.
i have two problems:
1. how can i make a post request?
2. when i fetch data, i also need to fetch a cookie, that contains the session ID.how can i "foward" it to the browser?
thanks a lot!!
-- ---------------------------------------------------------------------- Peter Stevens Phone: +41 43 535 8517 www.MinuteWatcher.com Fax: +41 44 544 8392