LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Lynx question :) (https://www.linuxquestions.org/questions/linux-software-2/lynx-question-296911/)

coolbest 03-02-2005 07:03 PM

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

Matir 03-03-2005 12:07 PM

Well, you could probably use wget to achieve your goals. :)


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