lynx


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting lynx
# 1  
Old 04-21-2012
lynx

theres a form with these fields

<form name="cpgform" id="cpgform" method="post" action="update.php">


<input type="text" name="user" size="30" class="textinput" />
<input type="password" name="pass" size="30" class="textinput" />
<input type="hidden" name="method" value="admin" />
<!--<input type="submit" name="submit" value="Login" class="button" />-->
<button type="submit" class="button" name="submit" value="OK">OK</button>



im using this command but its not working


echo 'user=MYUSERNAME&pass=MYPASSWORD&method=MySQL&submit=OK\n---' | lynx -accept_all_cookies http://DOMAIN/gallery/update.php



it doesnt even show
Could not authenticate you.


which is what it says if i enter the details by hand wrong
# 2  
Old 04-21-2012
I doubt lynx accepts input like that unless it's from a terminal.

What is the form method? if it's GET, you can append the information to the destination URL itself...

It'd probably be better to use an automated tool like wget instead of an interactive one like lynx.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

copy html to file with lynx

hey huys, i'm extacting some data from a webpage. I used lynx -dump URL > temp.dat its working fine, but I need some data that is in the html code, so how could I store the whole html code of the URL in a file and exit like the above code. (2 Replies)
Discussion started by: Johanni
2 Replies

2. UNIX for Dummies Questions & Answers

I'm a noob at Lynx...

So... I'm using lynx on a Mac... I didn't know that the whole dang thing is in Terminal? I rarely use terminal. I can't even figure out how to start the thing up. I type in lynx into it and press enter... And the cursor just goes down. Nothing happens like the FAQ websites describe. I feel so... (6 Replies)
Discussion started by: yennster
6 Replies

3. UNIX for Dummies Questions & Answers

lynx browser + SSL

I want to browse to java.sun.. to download Java JDK I built openSSL then tried to build lynx to use it by: ./configure --with-ssl It finds the ssl .h files but cant link, last 3 lines from .configure are: checking for openssl include directory... yes checking if we can link to ssl... (6 Replies)
Discussion started by: mikebgx
6 Replies

4. Cybersecurity

Is there any Javascript things for Lynx?

Just wondered if anyone knows of a Javascript thing for Lynx, would be happy to be able to enter even such pages... Please answer if you know something about it... I'm using Linux 2.2.19, Slackware and Lynx 2.8.3... Thanks for answering...=) (7 Replies)
Discussion started by: zeus
7 Replies

5. Shell Programming and Scripting

lynx

lynx Hi there , how to use this command ?? is it t to download files with any type(.zip,.exe,.xxx) ?? and i want example thx ... (1 Reply)
Discussion started by: XPS
1 Replies

6. UNIX Desktop Questions & Answers

Lynx / Links

Is there a particular style that works better than the default for lynx / links / other text-browsers? Since my most commonly-used home machines have of RAM, I try to avoid XWindows / Netscape as much as possible. I have found, however, that the default isn't very easy to navigate in 24x80... (1 Reply)
Discussion started by: LivinFree
1 Replies

7. UNIX for Dummies Questions & Answers

lynx startup

how to add an GUI application in a lynx 9.0 server start up. replies appreciated. raguram R (4 Replies)
Discussion started by: raguramtgr
4 Replies

8. UNIX for Dummies Questions & Answers

Downloading with lynx

Hi there! I one saw a command that allowed to download a file using lynx from an HTTP server without opening lynx itself. Looked something like this: $ lynx -xyz http://localhost/foo.bar ~/foo.bar I looked into lynx manpages and help but didn't find anything. Thank you in advance (2 Replies)
Discussion started by: D-Lexy
2 Replies

9. Shell Programming and Scripting

Lynx via crontab

I've written a program using the bourne shell (I think) #!/bin/bash that goes through a database and for each line does lynx "http://www.example.com/test.cgi?var=variable" The whole point of this was to later move it into the crontab so that once a day it would run this program on a website. Now... (4 Replies)
Discussion started by: sstevens
4 Replies

10. UNIX for Dummies Questions & Answers

Surfing the web with Lynx

Linux detected my modem(finally!) and I then proceeded it to configure it with Minicom according to the instructions here. I got it configured, and can dial up to my ISP, but now I am trying to figure out how to get Lynx to use the connection. Any ideas? (3 Replies)
Discussion started by: Furtoes00
3 Replies
Login or Register to Ask a Question