RE: constructing a http request using LWP..
- From: Prasanna.Nagasamudram@xxxxxxxxxxxxx (Prasanna Kumar Nagasamudram)
- Date: Tue, 26 Dec 2006 18:15:20 +0530
Hi pm
Although I have not tired this, I think it should be an alternative for
Win32::Guitest on linux.
X11::GUITest
The following link has all the info including installation and example.
http://www.perl.com/pub/a/2006/02/02/x11_gui_testing.html
Thanks
Prasanna
________________________________
From: positive mind [mailto:positivemind01@xxxxxxxxx]
Sent: Wednesday, December 20, 2006 7:02 PM
To: Nagasamudram, Prasanna Kumar
Cc: beginners@xxxxxxxx
Subject: Re: constructing a http request using LWP..
Hi Prasanna,
Thanks for your reply, but i have to do this on linux. does Win32 or any
equivalent module is available on Linux?
thanks,
pm
On 12/20/06, Nagasamudram, Prasanna Kumar
<Prasanna.Nagasamudram@xxxxxxxxxxxxx> wrote:
Hi pm
I had the same requirement, just with a press of a button, I need my
inbox(all the login etc should be automated)
I wrote the following script. (You may have to install the
Win32::GuiTest module from cpan. (also change YOURLOGIN and YOURPASSWORD
appropriately).
With this you don't have to worry about constructing the query string.
use Win32::GuiTest qw(:ALL);
system("start iexplore.exe");
sleep(3); # this delay for the window
# to comeup - try to increase
#if it is not sufficient
SendKeys('^(l)');
SendKeys('http://mail.yahoo.com{ENTER}'
<http://mail.yahoo.com%7bENTER%7d'> );
sleep(15); # This delay is to load the
#page - try to increase if it is not sufficient
SendKeys('YOURLOGIN{TAB}');
SendKeys('YOURPASSWORD{ENTER}');
Thanks
Prasanna
-----Original Message-----
From: positive mind [mailto: positivemind01@xxxxxxxxx]
Sent: Wednesday, December 20, 2006 5:24 PM
To: beginners@xxxxxxxx
Subject: constructing a http request using LWP..
Hi there,
is it possible to automate the login and log out say from yahoo mail
using
LWP/HTTP module.
cause
i have application which is similar to this and i have to send my login
request alongwith few query parameters . after i login i will be logged
in
to my applications mail box. how can i do this..i know which query
parameters to send but not able to construct the url.
the query parameters are
site=xyz.abc.com
lang=en
locale=us
and few more..which are static.
but there is something called random number which is hidden one and
which is
generated randomly.
if i do view source on the login page then i can get the value of this
random number.
my query is how do i get this random number from my perl script and pass
it
as query param. any idea will be helpful.
thanks in advance,
pm
- References:
- Re: constructing a http request using LWP..
- From: Positive Mind
- Re: constructing a http request using LWP..
- Prev by Date: Re: what's your most favourite feature of perl?
- Next by Date: Re: Remove an element from middle of array
- Previous by thread: Re: constructing a http request using LWP..
- Next by thread: Re: constructing a http request using LWP..
- Index(es):
Relevant Pages
|