Last active
April 6, 2025 15:26
-
-
Save fnordomat/db16a1357a55d7410d15c1a2a724b336 to your computer and use it in GitHub Desktop.
Automatic negotiation of a captive portal: connect to icomera wifi in CD trains without having to jump through hoops.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I believe this is the necessary and sufficient step to get internet access on board the Czech long distance trains (e.g. EuroCity which runs from Prague to Kiel) | |
curl -vLA '' 'http://cdwifi.cz/portal/api/vehicle/gateway/user/authenticate' | |
# It says "500 internal server error" but that doesn't keep it from working. | |
# check with this request, answer should contain "authenticated":1 | |
curl -vLA '' 'http://cdwifi.cz/portal/api/vehicle/gateway/user' | |
# Also nice: GPS data (but seems outdated) | |
curl -vLA '' 'http://cdwifi.cz/portal/internal/api/x6/position' | |
# Really nice: show connectivity including the LTE uplinks | |
curl -vLA '' http://www.info.cdwifi.cz/api/jsonp/connectivity |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I was traveling to Praha this weekend and I don't know if it's intentional, but the confirmation page on http://www.cdwifi.cz/ only works with a czech locale (
cs-CZ,cs
). For this to work, you may have to delete the cockies