How to automatically login to captive portals on OS X? How can I automatically login to captive portals on OS X?

A captive portal is used by (often not password-protected) wireless networks that present a web page as soon as you connect to them, requiring you to login.

I have to login to different wireless networks like this very frequently, and none of the captive portals seem to remember my login/password information. Is there a way to automate the login process somehow, or at least store the login/password pairs in the Keychain?

Update: There’s an iOS app called AutoWifi that basically handles this. If it’s possible to do this on iOS with all its restrictions, surely it must be possible to do something like it on OS X, right?



Related fun fact: This is how Apple tests for captive portals on OS X and iOS:


  OS X and iOS make a request to http://www.apple.com/library/test/success.html every time you connect to a WiFi network.


As of Yosemite the URL is now:  http://captive.apple.com/hotspot-detect.html

This URL returns the following HTML:

&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN"&gt;
&lt;HTML&gt;
&lt;HEAD&gt;
    &lt;TITLE&gt;Success&lt;/TITLE&gt;
&lt;/HEAD&gt;
&lt;BODY&gt;
Success
&lt;/BODY&gt;
&lt;/HTML&gt;
Just found this Disable Captive Network Support in OS X

Which mentions "To disable it, set this preference:"

sudo defaults write /Library/Preferences/SystemConfiguration/com.apple.captive.control Active -boolean false


In case, you would ever want to remove this setting, you can do:

sudo defaults delete /Library/Preferences/SystemConfiguration/com.apple.captive.control Active


Then, as @Leon mentions, use the regular web browser to login. Or if you are on a network where that somehow does not work then you can still try and open the app manually ( located at /System/Library/CoreServices/Captive Network Assistant.app )