Richard Lee wrote:
what is wrong w/ below?
I would think this would work but this is spitting out
use strict;
use warnings;
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
my $url = 'http://10.212.100.1';
#$mech->credentials('user1', 'passwd1');
my $page = $mech->get( $url );
print "$pa
what is wrong w/ below?
I would think this would work but this is spitting out
use strict;
use warnings;
use WWW::Mechanize;
my $mech = WWW::Mechanize->new();
my $url = 'http://10.212.100.1';
#$mech->credentials('user1', 'passwd1');
my $page = $mech->get( $url );
print "$page\n";
when I run
On Fri, 30 Mar 2007 20:45:43 +0100, Rob Dixon wrote:
> Jason Roth wrote:
>>
>> I'm using www::mechanize to submit a form to a website, and one of
>> the fields is disabled (and enabled by javascript on the page which
>> obviously isn't running). When I try to set a value for this field I
>> get
On 03/30/2007 01:20 PM, Jason Roth wrote:
I'm using www::mechanize to submit a form to a website, and one of the
fields is disabled (and enabled by javascript on the page which
obviously isn't running). When I try to set a value for this field I
get a "no such field" error. How to I set a value
Jason Roth wrote:
I'm using www::mechanize to submit a form to a website, and one of
the fields is disabled (and enabled by javascript on the page which
obviously isn't running). When I try to set a value for this field I
get a "no such field" error. How to I set a value for, and enable,
dis
I'm using www::mechanize to submit a form to a website, and one of the
fields is disabled (and enabled by javascript on the page which
obviously isn't running). When I try to set a value for this field I
get a "no such field" error. How to I set a value for, and enable,
disabled form fields?
Th
Randal L. Schwartz [RLS], on , , 2006 at 09:01 (-0800) contributed
this to our collective wisdom:
"Ing>> Problem comes, when I want to cache webpage with forms (POST).
RLS> This is strange. POST requests are not necessarily idempotent, and this is
RLS> why caches never cache them. Perhaps you
> ""Ing" == "Ing Branislav Gerzo" <[EMAIL PROTECTED]> writes:
"Ing> Problem comes, when I want to cache webpage with forms (POST).
This is strange. POST requests are not necessarily idempotent, and this is
why caches never cache them. Perhaps you want to turn these POSTs into GETs
instead,
Hi all there,
I'd like to use %subj% with caching options. I know how to use
Cache::File; or WWW::Mechanize::Cached.
Problem comes, when I want to cache webpage with forms (POST).
I decide not to use WWW::Mechanize::Cached, because it uses as key
given URL (as I decoded that from source).
I know
On Wed, May 12, 2004 at 12:59:44PM -0500, Ben Miller wrote:
> my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i );
... tag => "a", ...
I suspect.
--
Paul Johnson - [EMAIL PROTECTED]
http://www.pjcj.net
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional comma
Next and hopefully last question for now on a more general subject: Why do
array members take the form of 'ARRAY(0x90df74)' rather than the actual
content fed to an array or variable?
Whatever variable looks like that when printed if an array reference.
for(@links) {
print @{$_};
}
see
perldoc p
On 5/12/04 1:26 PM, Paul Johnson wrote:
> On Wed, May 12, 2004 at 12:59:44PM -0500, Ben Miller wrote:
>
>> my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i );
>
> ... tag => "a", ...
>
> I suspect.
Thank you to Paul and to Lee for their quick and efficient answer. That
Ben Miller wrote:
Hi,
Hello,
I'm reading/scraping hyperlinks from a specific web page using the following
while incorporating the WWW::Mechanize module:
my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i );
try tag => 'a' you are trying to assign a value of a to tag the wa
Hi,
I'm reading/scraping hyperlinks from a specific web page using the following
while incorporating the WWW::Mechanize module:
my @links = $mech->find_all_links(tag = "a", text_regex => qr/\bWORD\b/i );
When I run the program, I get an error: 'Can't modify constant item in
scalar assignment at
14 matches
Mail list logo