Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^2: crawling past a javascript submit function

by hashED (Novice)
on Sep 08, 2007 at 11:03 UTC ( #637811=note: print w/replies, xml ) Need Help??


in reply to Re: crawling past a javascript submit function
in thread crawling past a javascript submit function

Specialized! Specialized! The form tag is:

<form name="contract_cat_index1" id="contract_cat_index1" action="/cscr/contract_ads/display/contract_subcat_index.asp?GUID=" method="post">

When I copy and paste that link, I get "Missing data required to display the requested web page." Of course. Because then I'm not posting. I think I see what to do, and I'm gonna fiddle for a bit... just gotta get over to my other machine.

I'm still not sure what the parameters for do_POST should be, but I think I can figure it out through trial and error. If you know a better way, please advise.

Replies are listed 'Best First'.
Re^3: crawling past a javascript submit function
by Skeeve (Parson) on Sep 08, 2007 at 11:10 UTC

    You simply have to find all input elements inside the form and supply all the information needed.

    OTOH: There are modules that help you. I think WWW::Mechanize is one of those.


    s$$([},&%#}/&/]+}%&{})*;#$&&s&&$^X.($'^"%]=\&(|?*{%
    +.+=%;.#_}\&"^"-+%*).}%:##%}={~=~:.")&e&&s""`$''`"e

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://637811]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-06-27 23:46 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    My most frequent journeys are powered by:









    Results (89 votes). Check out past polls.

    Notices?