CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
Search Posts SEARCH
Who's Online WHO'S
Log in LOG

Home: Perl Programming Help: Intermediate: Re: [ferulebezel] Can't seem to do a POST request.: Edit Log


Oct 20, 2012, 7:58 PM

Views: 3322
Re: [ferulebezel] Can't seem to do a POST request.

use strict;
use warnings;

use WWW::Mechanize;

my $mech = WWW::Mechanize->new();

$mech->agent_alias('Windows Mozilla');


#this selects the search box

price_group => 'buy',
key_val => $bookData{'searchNumber'},
#submit the form data

#get the page content
my $content = mech->content();

i like useing WWW::Mechanize which makes things easier to do.. this is untested... When looking at the page source their was some jave script call backs for the fourm that on submit it checked something but dont know what. So youll have to tinker with this..

(This post was edited by wickedxter on Oct 20, 2012, 7:58 PM)

Edit Log:
Post edited by wickedxter (User) on Oct 20, 2012, 7:58 PM

Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives