Shrunken URLs for Air Canada Flight Status

Peter Rukavina

Air Canada doesn’t make it easy to link directly to flight status information on their website, hiding the information in a pop-up window behind a complex URL that looks like this:

http://book.aircanada.com/pl/AConline/en/OverrideServlet
?USERID=GUEST
&EXTERNAL_ID=GUEST
&EMBEDDED_TRANSACTION=FlifoInfoServlet
&SO_SITE_OFFICE_ID=YULAC18AB
&LANGUAGE=US
&COUNTRY=CA
&SITE=SAADSAAD
&TRIP_FLOW=YES
&BOOKING_FLOW=NONE
&PRIVATE_LABEL=ACO_AC_AIR
&MARKET=CA
&AIRLINE_CODE=AC
&FLIGHT_NUMBER=7489
&B_DATE=200703180900

To avoid either having to visit the Air Canada website or entering a long URL like this, I hacked together a little PHP redirecting magic to enable the following:

  • http://ruk.ca/ac
  • http://ruk.ca/ac/FLIGHTNUMBER
  • http://ruk.ca/ac/FLIGHTNUMBER/DATE

The default date, if you don’t specify, is the current one; otherwise use YYYYMMDD. For example, to get the status of today’s flight 7489 from Charlottetown to Halifax:

Or to get the status of flight 861 on March 27th:

Omit both the date and the flight number, and you’ll get a form where you can fill both in. You’re welcome to use this for your own personal convenience (with the proviso that it make break or disappear at some future date).

Comments

Add new comment

Plain text

  • Allowed HTML tags: <b> <i> <em> <strong> <blockquote> <code> <ul> <ol> <li>
  • Lines and paragraphs break automatically.

About This Blog

Photo of Peter RukavinaI am . I am a writer, letterpress printer, and a curious person.

To learn more about me, read my /nowlook at my bio, listen to audio I’ve posted, read presentations and speeches I’ve written, or get in touch (peter@rukavina.net is the quickest way). 

You can subscribe to an RSS feed of posts, an RSS feed of comments, or a podcast RSS feed that just contains audio posts. You can also receive a daily digests of posts by email.

Search