Using command line to connect to a wireless network with an http login

Posted by Shane on Super User See other posts from Super User or by Shane
Published on 2010-04-18T21:16:54Z Indexed on 2010/04/18 21:23 UTC
Read the original article Hit count: 203

Filed under:
|
|
|

I'm trying to connect to a wifi network where it hijacks all requests and redirects you to a page where you have to agree to a terms of use before it lets you connect to the actual outside world. This is a pretty common practice, and usually doesn't pose much of a problem.

However, I've got a computer running Ubuntu 9.10 server with no windowing system. How can I use the command line to agree to the terms of use? I don't have internet access on the computer to download packages via apt-get or anything like that. Sure, I can think of any number of workarounds, but I suspect there's an easy way to use wget or curl or something.

Basically, I need a command line solution for sending an HTTP POST request essentially clicking on a button. For future reference, it'd be helpful to know how to send a POST request with, say, a username and password if I ever find myself in that situation in another hotel or airport.

© Super User or respective owner

Related posts about command-line

Related posts about wifi