Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
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
Domain Nodelet?
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 examining the Monastery: (3)
As of 2023-10-04 06:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?