You are not logged in.
I am in a campus. To access the internet, a web-based authentication is required. They give us a url when entered in a browser it will direct us to a page which asks our username and password for authentication, if successful, we can access internet. Can anybody explain to me or point to me some other resources on how it works? Is it a proxy?
Let's come to the practical problem. Is it possible to get authenticated in the command line without a browser thing?
Last edited by plmday (2010-09-20 20:27:02)
Arch, the Portal of Linux
Offline
use wget or curl, passing in the appropriate user name and password.
You will need to get the address link correctly.
There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !
Offline
Assuming the login form is an HTML form, you can probably fake it with a simple wget request.
Offline
Thanks, that solves my trouble,
Arch, the Portal of Linux
Offline
Thanks, that solves my trouble,
I was asking (quite lazily) the same question to myself some time ago... How did you solve it? Does your page use https and/or javascript? Mine has both...
Last edited by Leonid.I (2010-09-23 18:10:53)
Arch Linux is more than just GNU/Linux -- it's an adventure
pkill -9 systemd
Offline
Try
curl http://user:password@url
Offline