Fedora Linux Support Community & Resources Center
Old 23rd June 2012, 03:05 PM
mathboy314 Offline
Registered User
Join Date: Nov 2005
Posts: 31
get_data switch for lynx

Hi All,

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

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 < form_data

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!
Reply With Quote
Old 24th June 2012, 06:47 PM
george_toolan Offline
Registered User
Join Date: Dec 2006
Posts: 2,088
Re: get_data switch for lynx

Does lynx still exist? Try
man links
Reply With Quote
Old 24th June 2012, 07:15 PM
RupertPupkin Offline
Registered User
Join Date: Nov 2006
Location: Detroit
Posts: 6,607
Re: get_data switch for lynx

Originally Posted by george_toolan View Post
Does lynx still exist?
Yes. And it's still in the Fedora repos. But its -get_data and -post_data options have always been poorly documented and their functioning has always been kind of hit-and-miss. I wouldn't depend on those always working properly. I think the OP would be better off writing his own tool in some language with networking libraries that support form submission. There are plenty of choices, and it would be much more reliable and configurable.
OS: Fedora 26 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 7GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote

getdata, lynx, switch

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Lynx Installation KB88 Using Fedora 1 2nd March 2010 03:01 AM
Lynx questions EvoL1 Using Fedora 3 22nd August 2007 10:13 AM

Current GMT-time: 22:08 (Friday, 18-08-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat