Fedora Linux Support Community & Resources Center
  #1  
Old 23rd June 2012, 03:05 PM
mathboy314 Offline
Registered User
 
Join Date: Nov 2005
Posts: 30
windows_xp_2003ie
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:

http://192.168.0.50/2 <-- 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 < 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
  #2  
Old 24th June 2012, 06:47 PM
george_toolan Offline
Registered User
 
Join Date: Dec 2006
Posts: 2,078
linuxfirefox
Re: get_data switch for lynx

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

Quote:
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 20 x86_64 | Machine: HP Pavilion a6130n | CPU: AMD 64 X2 Dual-Core 5000+ 2.6GHz | RAM: 5GB PC5300 DDR2 | Disk: 400GB SATA | Video: ATI Radeon HD 4350 512MB | Sound: Realtek ALC888S | Ethernet: Realtek RTL8201N
Reply With Quote
Reply

Tags
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 02:01 AM
Lynx questions EvoL1 Using Fedora 3 22nd August 2007 10:13 AM


Current GMT-time: 23:57 (Wednesday, 22-10-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

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
Lusambo Photos on Instagram - Nyahururu - Benesov Travel Photos