[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] wget --post-data not getting past login page
From: |
loc |
Subject: |
Re: [Bug-wget] wget --post-data not getting past login page |
Date: |
Fri, 4 May 2012 12:59:50 -0400 |
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 <address@hidden> 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
>
>