LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-02-2005, 07:03 PM   #1
coolbest
LQ Newbie
 
Registered: Feb 2005
Location: Auckland, New Zealand
Distribution: Gentoo 2004.3
Posts: 4

Rep: Reputation: 0
Lynx question :)


Hi,

I got a problem at had which i'd like to solve. I'm a newbie to linux, and i'm just beggining to experiment with lynx browser (no not for my primary web browsing purposes ). Basically what i am trying to achieve is: i need to make 2 concecutive calls to 2 different webpages, each of which is being protected by basic http authentication (well first a get request to my routers web interface to change the username and password, and secound is a get request to another web page which saves the config resets the router).

The way i'm trying to achieve it at the moment is via a shell script and lynx web browser. At the moment i have something along those lines:
Code:
lynx -auth=admin:passowrd -get_data {... long url encoded string ...}--- {url of the page}
lynx -auth=admin:password {url of the reset page - not get data present}
One problem i'm seeming to have is that after the first request lynx loads the page and then remains (open?) on that page. So i guess my question is (actually i got two):

1) Is there any way to just make these calls and nothing else? So i just want the data to be sent, but i don't want to see the browser as such.

2)
Quote:
-get_data user data for get forms, read from stdin, terminated by '---' on a line
, so just to clarify my unserstanding: the way i use it is "-get_data test=asdf&test2=wert---"?

Any help will be greatly appreciated

Kind regards,
Nick Goloborodko
 
Old 03-03-2005, 12:07 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
Well, you could probably use wget to achieve your goals.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Links/Lynx Browser - Fonts Question rvijay Linux - Software 1 08-09-2005 03:01 AM
Lynx Browser Question. rvijay Linux - Software 5 11-20-2004 12:33 AM
question about using lynx Supp0rtLinux Linux - Software 1 01-15-2003 01:15 AM
Question about Lynx Glockage Linux - General 7 06-17-2002 09:36 PM
lynx gui10 Linux - Software 17 06-09-2002 11:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:14 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration