On Wed, March 5, 2008 08:46, David Lowrey wrote: > Andrej,<br> > <br> > Format your URL like this:<br> > <a class="moz-txt-link-freetext" > href="http://userid:[EMAIL PROTECTED]/path">http://userid:[EMAIL > PROTECTED]/path</a><br> > <br> > The only problem with this approach is that your userid & password > are sent out in clear text...<br> > <br> > Dave<br> > <br> > Andrej Sokurov wrote: > <blockquote > cite="mid:[EMAIL PROTECTED]" > type="cite">Hello everyone:<br> > <br> > I need to write a program that would fetch an HTML page from a secure > site that requires authorization.<br> > When a human it usually done in following sequence:<br> > 1. Get login screen (https)<br> > 2. Supply login/password<br> > 3. Get needed HTML page (https)<br> > 4. Logout<br> > <br> > Doing similar thing without required authorization is very simple and > straightforward procedure:<br> > <br> > my($request) = new HTTP::Request GET => $url;<br> > my($ua) = new LWP::UserAgent;<br> > my($response) = $ua->request($request);<br> > my($html_page_received)=$response->content;<br> > <br> > However, getting through secure site that requires authorization is not > clear for me.<br> > Could somebody point me in a right direction? It would be the best, if > somebody gives me an example of such program<br> > <br> > Thank you.<br> > <pre wrap=""> > <hr size="4" width="90%"> Actually I think that you need to make two exchanges, the first deals with the login, the second exchanges the information. If you are going to an https page I think LWP will use standard SSL protocol so the username and password are NOT sent in the clear.
Bill _______________________________________________ Perl-Win32-Web mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
