I am having trouble scripting lynx to submit data to a GET form. I've searched high and low and can't get a decent example of the -get_data option.
Here is what I know:
I have a URL that displays a form:
<-- yes that's the url
the form is a GET method one that I can see with my packet capture trace and the fields it requires are f1 and f2.
So the resulting URL in my trace shows http://192.168.0.50/2?f1=value1&f2=value2
I'm trying to submit these values via the command line using lynx in one command:
Here is what I've tried:
lynx -get_data http://192.168.0.50/2
where form_data is a file that looks exactly like this:
f1=value1 <-- this is the first value
f2=value2 <-- this is the second value
--- <-- the man page of lynx says to put this in at the end
I thought that would pipe the data into the form and dispay the resulting html in my console but all it does is dump the website in the console as if the form wasn't even submitted.
Any help is super appreciated!