You are not logged in.

#1 2010-09-20 17:38:43

plmday
Member
From: Germany
Registered: 2009-02-19
Posts: 66

[SOLVED] Internet access upon authentication

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

#2 2010-09-20 18:00:05

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [SOLVED] Internet access upon authentication

use wget or curl, passing in the appropriate user name and password.

You will need to get the address link correctly.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#3 2010-09-20 18:03:32

stqn
Member
Registered: 2010-03-19
Posts: 1,191
Website

Re: [SOLVED] Internet access upon authentication

Assuming the login form is an HTML form, you can probably fake it with a simple wget request.

Offline

#4 2010-09-20 20:26:27

plmday
Member
From: Germany
Registered: 2009-02-19
Posts: 66

Re: [SOLVED] Internet access upon authentication

Thanks, that solves my trouble, smile


Arch, the Portal of Linux

Offline

#5 2010-09-23 18:10:34

Leonid.I
Member
From: Aethyr
Registered: 2009-03-22
Posts: 999

Re: [SOLVED] Internet access upon authentication

plmday wrote:

Thanks, that solves my trouble, smile

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

#6 2010-09-23 18:36:50

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] Internet access upon authentication

Try

curl http://user:password@url

Offline

Board footer

Powered by FluxBB