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 &amp; 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&nbsp;&nbsp;&nbsp;&nbsp; (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>
> &nbsp; my($request) = new HTTP::Request GET =&gt; $url;<br>
> &nbsp; my($ua) = new LWP::UserAgent;<br>
> &nbsp; my($response) = $ua-&gt;request($request);<br>
> &nbsp; my($html_page_received)=$response-&gt;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

Reply via email to