Sign up ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Many Wi-Fi hotspots these days have a "web login", especially free ones. You know, the ones that redirect any HTTP request to their login form. Windows usually displays the "Additional login information may be required" notification for these.

Is there a way that I can automate the process of such logins, ie. save my username and password (for a given hotspot)? Ideally, I want this to happen without even opening my usual browser, although if the process itself automatically opens and closes an Internet Explorer window to perform the login that might be OK.

share|improve this question
try using lastpass, it automatically logs you in when the webpage is opened – Shekhar Oct 10 '13 at 16:02
@JessRiedel Shopping recommendation doesn't mean hardware, it can mean software too. The reason for this is because we want questions and answers to be valid for a long time. While a software recommendation can be helpful, it might not be years from now when the software isn't around or doesn't offer the desired functionality any more. might be a better place to post this, though. Our help center is a good place to read up on on-topic stuff. – Moses Apr 25 '14 at 21:54
First, I wasn't making a distinction between hardware and software. I was making a distinction between a complex, user-specific, non-generalizable problem and a simple, broadly applicable one. Second, there are innumerable questions on this website with 1 or 2 year useful lifetime, so that criterion so that does not select against this question. Third, I have read the on topic material. I simply do not think it is being applied correctly here. – Jess Riedel Apr 25 '14 at 22:16
"Is there a program out there?" Try on – Kevin Panko Apr 25 '14 at 23:20
Fair point - clarified. I don't want to open my usual browser, because it restores all existing tabs and all of them get redirected to the login page. Then I have to either log in in every tab or click back in most of them - and depending on the Wifi provider sometimes the back button is broken, too. But if the login process opened a different browser just to log in that would be OK. – E M May 6 '14 at 12:34

3 Answers 3

I would create a curl command which executes on system boot. When the commands executes it will send your authentication details and log you in.

This can be achieved with Google chromes "copy as curl" feature. Copy the get request as a curl command from your web browser after you've clicked the login button into a bash script.

This assume authentication by mac address, however if its by cookie you could save the returned cookie in the appropriate browsers cookie folder.

enter image description here

share|improve this answer

@Thrustmaster pointed at his Python script but you could also use PowerShell to do this.

Run the PS script which would use the Invoke-WebRequest cmdlet to connect to any known site (in the UK, we usually use, mainly because it is easy to type :)

You would then need to parse the returned object checking to make sure it wasn't the expected site.

Then you would need to identify the fields that need filling in. This would be the hard part! Not too bad if you know the layout of the login page or just have a few known pages.

Then fill in the form fields required and submit.

Finally get the script to open your browser normally.

Or maybe it would be a lot easier to keep another browser installed and just use that when on a Wi-Fi network that needed a login!

share|improve this answer

Other than scripting as already suggested, there don't appear to be any Windows applications that support this. There are several Android/iOS apps however.

share|improve this answer
Can you post links to those Android/iOS apps please. – Shenal Silva Jul 31 '14 at 7:02

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.