
wickedxter
User
Oct 20, 2012, 7:58 PM
Post #2 of 2
(908 views)
|
|
Re: [ferulebezel] Can't seem to do a POST request.
[In reply to]
|
Can't Post
|
|
use strict; use warnings; use WWW::Mechanize; my $mech = WWW::Mechanize->new(); $mech->agent_alias('Windows Mozilla'); $mech->get('http://www.textbooks.co/BuyBack-Search.php'); #this selects the search box $mech->form(1); $mech->set_feilds( price_group => 'buy', key_val => $bookData{'searchNumber'}, ); #submit the form data $mech->submit(); #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)
|