Re: WWW::Mechanize question

2008-05-31 Thread Gunnar Hjalmarsson
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

Re: www::mechanize question

2007-04-01 Thread Peter Scott
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

Re: www::mechanize question

2007-03-30 Thread Mumia W.
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

Re: www::mechanize question

2007-03-30 Thread Rob Dixon
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

Re: WWW::Mechanize question

2006-01-17 Thread Brano Gerzo
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

Re: WWW::Mechanize question

2006-01-17 Thread Randal L. Schwartz
> ""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,

Re: WWW::Mechanize question

2004-05-13 Thread Paul Johnson
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

Re: WWW::Mechanize question / array values

2004-05-12 Thread JupiterHost.Net
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

Re: WWW::Mechanize question / array values

2004-05-12 Thread Ben Miller
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

Re: WWW::Mechanize question

2004-05-12 Thread JupiterHost.Net
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