For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > October 2006 > how to login into a web page









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author how to login into a web page
Jagjeet_Singh

2006-10-19, 7:55 am

Hi All,

I need your help to solve my problem. I do not know whether this
question can be solved using perl or not
but someone told me that perl could be the solution.

I want to automate the login to one site [ very few components ] like
I have internet connection 24*7 but my
machine got logged off I do not use internet for few minutes, then I
have to login to my service provider authentication site.

My service provider does not provide any solution for to be logged on
all the time or no automatic login.

And I need to use my machine from remote location.

So, I am looking for any script or way to do this automatically. When
ever I am not logged to my service provider and I can pass the url like
http://service_provider_ip/his_basi...cation_page.php
and I can profide user name and password and press the "submit" button.

Please tell me if is there any way to do this automatically.

Regards,
Js

Paul Lalli

2006-10-19, 6:55 pm

Jagjeet_Singh wrote:
> I want to automate the login to one site [ very few components ] like
> I have internet connection 24*7 but my
> machine got logged off I do not use internet for few minutes, then I
> have to login to my service provider authentication site.
>
> My service provider does not provide any solution for to be logged on
> all the time or no automatic login.
>
> And I need to use my machine from remote location.
>
> So, I am looking for any script or way to do this automatically. When
> ever I am not logged to my service provider and I can pass the url like
> http://service_provider_ip/his_basi...cation_page.php
> and I can profide user name and password and press the "submit" button.
>
> Please tell me if is there any way to do this automatically.


Yes. See the LWP::UserAgent module, available on CPAN. Specifically,
look at the credentials() method of that class.

Paul Lalli

Jagjeet_Singh

2006-10-20, 3:55 am

Thanks Paul,

I will look into this.

Regards,
Js

On Oct 19, 10:25 am, "Paul Lalli" <mri...@gmail.com> wrote:
> Jagjeet_Singh wrote:
>
>
>
>
> look at the credentials() method of that class.
>
> Paul Lalli


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com