RE: constructing a http request using LWP..



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





Relevant Pages

  • Re: constructing a http request using LWP..
    ... but i have to do this on linux. ... With this you don't have to worry about constructing the query string. ... is it possible to automate the login and log out say from yahoo mail ... request alongwith few query parameters. ...
    (perl.beginners)
  • RE: Web query problem when password required
    ... Madhan, ... The problem with login is solved but the problem with query is not yet ... .WebDisableDateRecognition = False ...
    (microsoft.public.excel.programming)
  • Re: Query on SQL Server 2000 Linked Table Doesnt Provide Correct Results
    ... You may be able to use Lenin a calculated query field to determine if the count of characters is not what you expect. ... I have some backend tables in a SQL Server 2000 Database linked into ... User daemon value rlogin is true ... User bin value login is true ...
    (microsoft.public.access.queries)
  • Re: File - partially Read-Only and partially Write-Only
    ... non-writeability is a hardware function not a software one). ... already in existence in linux and hence posted my above query. ... my query was oriented with that. ...
    (comp.arch.embedded)
  • Re: OReilly interview with Date
    ... globally unique. ... > But anyway, moving forward, a query is just a list of desired columns (we ... > column {login;} ... is it (bugid, login_rep, login_own)? ...
    (comp.databases.theory)