Wrapping Apache's HttpClient and clearing cookies before login