Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: Submitting Forms for .NET Sites Problem

by Gangabass (Vicar)
on May 08, 2015 at 03:37 UTC ( #1126054=note: print w/replies, xml ) Need Help??


in reply to Submitting Forms for .NET Sites Problem

First you need to understand will your form work with Javascript disabled or not. I recommend to disable Javascript in your browser and submit your form after that. If the form will work then all you need is just submit your data with WWW::Mechanize:
$mech->submit_form( with_fields => { login => "somelogin", password => "somepassword", }, );
If you can't submit your data from the browser with Javascript disabled you can either emulate same POST request in your code or you can use browser automation (like WWW::Mechanize::PhantomJS)

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (3)
As of 2020-05-27 22:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    If programming languages were movie genres, Perl would be:















    Results (162 votes). Check out past polls.

    Notices?