I wrote this post a few months ago when I was stuck on a train and figured I’d publish it before it gets lost forever.
Today I bring you the pain in the ass process I went through to get a really shitty connection on my Amtrak ride
Connecting to the wifi network yields a proper connection (ip assigned &
network-manager is happy)… but once you try to go to any page you are stopped..
1 2 3 4 5
If we go to
http://184.108.40.206:80 we will magically be redirected to www.amtrakconnect.com! The login page that failed to popup when the connection was established.
Even if we manually go to the URL your browser may get tripped up and timeout over and over again. While waiting for the browser why not curl that beezy?
curl amtrakconnect.com will yield content so WTF is going on Mr. Browser? You must be getting stuck somewhere
Lets save the contents of that page to a file (
!! > weblogin.html) and update any links to be absolute paths so all the php files load properly when we open it locally (we dont care about getting images/stylesheets to load).
To the source!! On first glance it should be pretty obvious that an ajax call is happening and we just need to click on an accept link to verify ourselves after its successful.
And voila we click on the link and are able to use the trash connection for the rest of the train ride.