LinuxQuestions.org
Visit Jeremy's Blog.
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, 08: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, 01:07 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Ubuntu
Posts: 8,507

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


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 04:01 AM
Lynx Browser Question. rvijay Linux - Software 5 11-20-2004 01:33 AM
question about using lynx Supp0rtLinux Linux - Software 1 01-15-2003 02:15 AM
Question about Lynx Glockage Linux - General 7 06-17-2002 10:36 PM
lynx gui10 Linux - Software 17 06-10-2002 12:44 AM

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

All times are GMT -5. The time now is 05:57 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration