[26264] in Perl-Users-Digest
Perl-Users Digest, Issue: 8447 Volume: 10
daemon@ATHENA.MIT.EDU (Perl-Users Digest)
Fri Sep 23 11:05:27 2005
Date: Fri, 23 Sep 2005 08:05:07 -0700 (PDT)
From: Perl-Users Digest <Perl-Users-Request@ruby.OCE.ORST.EDU>
To: Perl-Users@ruby.OCE.ORST.EDU (Perl-Users Digest)
Perl-Users Digest Fri, 23 Sep 2005 Volume: 10 Number: 8447
Today's topics:
[OT] run .pl from IE (was: Re: How to start Perl applic <rvtol+news@isolution.nl>
automate website login using perl <tester@uussssh.com>
Re: automate website login using perl <no@email.com>
Re: automate website login using perl <tester@uussssh.com>
Re: automate website login using perl <no@email.com>
Re: automate website login using perl <tester@uussssh.com>
Re: automate website login using perl <no@email.com>
Re: automate website login using perl <richard@zync.co.uk>
How to start Perl application form HTML document, with <katharina@soptyste.hr>
Re: How to start Perl application form HTML document, w <no@email.com>
Re: How to start Perl application form HTML document, w <rvtol+news@isolution.nl>
Re: How to start Perl application form HTML document, w <sbryce@scottbryce.com>
Digest Administrivia (Last modified: 6 Apr 01) (Perl-Users-Digest Admin)
----------------------------------------------------------------------
Date: Fri, 23 Sep 2005 16:35:48 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: [OT] run .pl from IE (was: Re: How to start Perl application form HTML...)
Message-Id: <dh1bb2.144.1@news.isolution.nl>
Brian Wakem:
> Katharina:
>> How to start Perl application form HTML document, with Internet
>> Explorer without installed Apache Web server?
>
> Internet Explorer cannot execute CGI scripts.
Well, I have seen it run sed code:
http://lvogel.free.fr/jsed/index.html
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Fri, 23 Sep 2005 18:04:15 +0530
From: tester <tester@uussssh.com>
Subject: automate website login using perl
Message-Id: <ATSYe.24$0q6.54@news.oracle.com>
Hi All,
I am trying to automate login to a website using the following code. but
it is not working ... any ideas?
----------------------
use HTTP::Request;
use LWP::UserAgent;
$http_cmd = "http://testertesting:80/login.html";
my %tags = ();
$tags{'action'} = 'calling page/servlet';
$tags{'id'} = 'User';
$tags{'username'} = 'user';
$tags{'password'} = 'passwd';
# Create a user agent object
use LWP::UserAgent;
$ua = LWP::UserAgent->new;
$ua->agent("MyApp/0.1 ");
# Create a request
my $req = HTTP::Request->new(POST => $http_cmd);
$req->content_type('application/x-www-form-urlencoded');
$req->content( %tags );
# Pass request to the user agent and get a response back
my $resp = $ua->request($req);
print $resp->content;
----------------------
~tester
------------------------------
Date: Fri, 23 Sep 2005 13:38:21 +0100
From: Brian Wakem <no@email.com>
Subject: Re: automate website login using perl
Message-Id: <3pib9tF9q874U1@individual.net>
tester wrote:
> $http_cmd = "http://testertesting:80/login.html";
> my $req = HTTP::Request->new(POST => $http_cmd);
I doubt you want to post to login.html
> print $resp->content;
And what did it print, login.html?
--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
------------------------------
Date: Fri, 23 Sep 2005 18:12:12 +0530
From: tester <tester@uussssh.com>
Subject: Re: automate website login using perl
Message-Id: <Z_SYe.25$0q6.55@news.oracle.com>
I am getting "500 read timeout"
Brian Wakem wrote:
> tester wrote:
>
>
>>$http_cmd = "http://testertesting:80/login.html";
>
>
>>my $req = HTTP::Request->new(POST => $http_cmd);
>
>
>
> I doubt you want to post to login.html
>
>
>
>>print $resp->content;
>
>
>
> And what did it print, login.html?
>
>
>
------------------------------
Date: Fri, 23 Sep 2005 13:47:46 +0100
From: Brian Wakem <no@email.com>
Subject: Re: automate website login using perl
Message-Id: <3pibriF9q874U2@individual.net>
tester wrote:
> I am getting "500 read timeout"
Don't top post.
Then your script is fine. Either you are POSTing to the wrong address or
the target server is misconfigured.
--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
------------------------------
Date: Fri, 23 Sep 2005 18:39:02 +0530
From: tester <tester@uussssh.com>
Subject: Re: automate website login using perl
Message-Id: <1oTYe.29$0q6.101@news.oracle.com>
Hi Brian,
I don't understand "Don't top post"? :-(
I wonder whether POST takes the form page url or the target page url
(login credentials verification page)!
If I give the form page url then I am getting page content as output
If I give the target page url then I am getting "500 read timeout"
Thankyou,
tester
Brian Wakem wrote:
> tester wrote:
>
>
>>I am getting "500 read timeout"
>
>
>
> Don't top post.
>
> Then your script is fine. Either you are POSTing to the wrong address or
> the target server is misconfigured.
>
>
>
------------------------------
Date: Fri, 23 Sep 2005 14:27:09 +0100
From: Brian Wakem <no@email.com>
Subject: Re: automate website login using perl
Message-Id: <3pie5dFakjuaU1@individual.net>
tester wrote:
> Hi Brian,
> I don't understand "Don't top post"? :-(
>
> I wonder whether POST takes the form page url or the target page url
> (login credentials verification page)!
> If I give the form page url then I am getting page content as output
> If I give the target page url then I am getting "500 read timeout"
It's the target url, so my all of my previous answer still applies.
--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
------------------------------
Date: Fri, 23 Sep 2005 14:45:50 +0100
From: Richard Gration <richard@zync.co.uk>
Subject: Re: automate website login using perl
Message-Id: <pan.2005.09.23.13.45.50.106175@zync.co.uk>
On Fri, 23 Sep 2005 18:04:15 +0530, tester wrote:
> Hi All,
>
> I am trying to automate login to a website using the following code. but
> it is not working ... any ideas?
Once you do have it working, you will almost certainly need a cookie jar
(instructions for the use of which you will find in the LWP docs). This is
because web sites typically use a cookie for persistent logins.
Rich
------------------------------
Date: Fri, 23 Sep 2005 15:22:54 +0200
From: "Katharina" <katharina@soptyste.hr>
Subject: How to start Perl application form HTML document, with Internet Explorer without installed Apache Web server?
Message-Id: <dh0vr9$55p$1@ss405.t-com.hr>
How to start Perl application form HTML document, with Internet Explorer
without installed Apache Web server?
------------------------------
Date: Fri, 23 Sep 2005 14:36:58 +0100
From: Brian Wakem <no@email.com>
Subject: Re: How to start Perl application form HTML document, with Internet Explorer without installed Apache Web server?
Message-Id: <3pienqFaa04lU1@individual.net>
Katharina wrote:
> How to start Perl application form HTML document, with Internet Explorer
> without installed Apache Web server?
Internet Explorer cannot execute CGI scripts.
--
Brian Wakem
Email: http://homepage.ntlworld.com/b.wakem/myemail.png
------------------------------
Date: Fri, 23 Sep 2005 16:13:54 +0200
From: "Dr.Ruud" <rvtol+news@isolution.nl>
Subject: Re: How to start Perl application form HTML document, with Internet Explorer without installed Apache Web server?
Message-Id: <dh19kl.1lo.1@news.isolution.nl>
Katharina schreef:
> How to start Perl application form HTML document, with Internet
> Explorer without installed Apache Web server?
I assume: s/form/from/
This is a way:
Perl should be installed locally (on the machine where the browser is
running).
Make the link in the HTML-document point to an existing local file, like
file://C:/perl/eg/example.pl
If you see a flashing black box where you expected some output, add a
line to the Perl application that makes it wait for a while and/or a key
stroke, before returning.
--
Affijn, Ruud
"Gewoon is een tijger."
------------------------------
Date: Fri, 23 Sep 2005 08:55:11 -0600
From: Scott Bryce <sbryce@scottbryce.com>
Subject: Re: How to start Perl application form HTML document, with Internet Explorer without installed Apache Web server?
Message-Id: <OumdnUtTzObTiqneRVn-qg@comcast.com>
Katharina wrote:
> How to start Perl application form HTML document, with Internet Explorer
> without installed Apache Web server?
I'm guessing that what you want to do is run a Perl CGI script on a
machine that does not have Apache installed.
If I am correct, you will need to have a web server running on the
machine where the Perl script is to be run as a CGI script.
------------------------------
Date: 6 Apr 2001 21:33:47 GMT (Last modified)
From: Perl-Users-Request@ruby.oce.orst.edu (Perl-Users-Digest Admin)
Subject: Digest Administrivia (Last modified: 6 Apr 01)
Message-Id: <null>
Administrivia:
#The Perl-Users Digest is a retransmission of the USENET newsgroup
#comp.lang.perl.misc. For subscription or unsubscription requests, send
#the single line:
#
# subscribe perl-users
#or:
# unsubscribe perl-users
#
#to almanac@ruby.oce.orst.edu.
NOTE: due to the current flood of worm email banging on ruby, the smtp
server on ruby has been shut off until further notice.
To submit articles to comp.lang.perl.announce, send your article to
clpa@perl.com.
#To request back copies (available for a week or so), send your request
#to almanac@ruby.oce.orst.edu with the command "send perl-users x.y",
#where x is the volume number and y is the issue number.
#For other requests pertaining to the digest, send mail to
#perl-users-request@ruby.oce.orst.edu. Do not waste your time or mine
#sending perl questions to the -request address, I don't have time to
#answer them even if I did know the answer.
------------------------------
End of Perl-Users Digest V10 Issue 8447
***************************************