I using HttpClient api to authenticate to a web site: 

```
    DefaultHttpClient httpclient = new DefaultHttpClient();

    httpclient.getCredentialsProvider().setCredentials(
            new AuthScope(AuthScope.ANY_HOST, 443),
            new UsernamePasswordCredentials(args[0], args[1]));

    HttpGet httpget = new HttpGet("http://..........");

    HttpResponse response = httpclient.execute(httpget);

    System.out.println(response.getStatusLine());
    if (entity != null) {
        System.out.println("Response content length: "
                + entity.getContentLength());
    }

```

I have this answer:

```
HTTP/1.1 403 Forbidden
Response content length: -1 

```

But with a browser i have access to this page with the same login and password !!!!

How can i fix this problem ?