I want to do two tasks but I don’t know how:
-
Read from terminal the value of a select? I know the name of the select and all the options of this select. I can’t change the web and I need to access this data through terminal.
-
Change the value of this select with a valid option using Terminal too.
I tried with wget www.webpage.com/index.html?selectname= but it doesn’t work.
What mean by “access”? You can fetch the full page with wget for example, or by pure bash:
If you want browsing from terminal, try “lynx“.
Honestly, have no idea what you mean with: I can’t change the web and I need to access this data through terminal.
And in the 2.: Change the value of this select with a valid option using Terminal too. How change? Want change the source of the html? Or you mean submit the form with some select(ed)-value?
Submitting a form maybe easy or not. Depends on several factors. It is GET or POST? What is the FORM’s submit url? etc.. etc…
Or want something other?
Is is impossible answer your question in this form.