Use apache HttpClient for access, which simplifies the connection a bit and handles cookies automatically