On Tue, 7 Jun 2016, at 16:33, Bob wrote: > Hello list, > > I'm trying to automate my internet login which is based on a web form. I > have already checked few tutorial/posts on form submission by curl. I > have tried various combinations too but nothing worked in my case. > > When I inspect the form I get following for username/password text box > and submit button > > ```````` > > <input type="text" name="Username" size="20"> > <input type="password" name="Password" size="20"> > <input type="submit" class="btn_cp" value="Login" onclick="return > validateForm()">
Don't you have to find out what validateForm() would do if the values provided are ok, and make curl do the next step? That may also depend on whether there's code to run for form submit, even if validation has been ok. -- Jeremy Nicoll - my opinions are my own.