Reading URL after Doing HTTP Basic Authentication

The problem is when you generate the Net::HTTP::Get object, pass in url.request_uri, not url.path. #path will only give you the strict path minus the query string. #request_uri gives you everything you need.