Ulf Dittmer wrote:You could use an HTTP monitor to see how the request differs between logging in via the web site, and logging in via HttpClient.
If this was my problem I'd use HtmlUnit instead of HttpClient, as it has a higher-level API for dealing with programmatic web access.
Thank you for this information... I'm still wondering why my code work for some sites and not for others ... Thanks in advance.