There's more than one way to do things | |
PerlMonks |
Re^8: Correct link to put in my WWW:Mechanizeby bliako (Monsignor) |
on Mar 13, 2022 at 12:14 UTC ( [id://11142070]=note: print w/replies, xml ) | Need Help?? |
Your code is bad. You need to quote strings (hash values). Additionally S1 parameter looks a bit strange with the new line embedded - are you sure? Here is the curl equivalent of a successful run I did earlier (I broke the lines for readability). You can see that by opening developer tools on Firefox. I have done a successful submission using this from a Linux terminal:
You can infere a couple of things from the above: 1) the correct POST params from --data-raw. 2) No cookies are required. So either continue with Mech but use the correct url and POST params or use LWP::UserAgent with a browser-like user-agent string sarcasm on: if the cgi script you are accessing is also programmed by biologists all bets are on (off, whatever). bw, bliako
In Section
Seekers of Perl Wisdom
|
|