Changes to make it work behind a bluecoat proxy - added a user agent, and changed url scheme