I finally figured out what I was doing wrong. This site pointed me to the solution http://journalxtra.com/linuxsanity/bash-linuxsanity/bash-filling-web-forms-with-curl-and-wget-3814/
I was using the wrong url with wget. I was using the url which contained the form I wanted to fill, but should have been using the the url of the page that is processing the form data. This can be found in the form page code: <form id="LoginFrm" name="LoginFrm" method="post" action="ManualLoginSubmit.asp"> The value for action= is what I needed to send the post data to with wget. On Fri, May 4, 2012 at 12:31 PM, Tony Lewis <[email protected]> wrote: > loc wrote: > >> I can't seem to get wget --post-data to work with any site, I've tried a > few more and none work. >> > ......... ......... ......... ......... ......... ......... ......... > ....... >> Below is one I'm trying as a test and if I load the page in Firefox and >> just put "test" in for the First Name field a new page is loaded which > says: >> >> "An Error Has Occured >> You must fill in the field Last Name" > > You might want to try putting a value in fLastName since the server is > complaining that the last name is missing. > > Tony > >
