Valeri
Here's a short code snippet that I hope will help you get moving in the
right direction.
HttpClient client = new HttpClient();
client.getState().setProxyCredentials(
"proxy realm",
new UsernamePasswordCredentials("username", "password")
);
client.getHostConfiguration().setProxy("proxy.mydomain.com", 8080);
GetMethod httpget = new GetMethod("http://www.whatever.com/");
client.executeMethod(httpget);
// print the status
System.out.println("Response: " + httpget.getStatusLine().toString());
// release any connection resources used by the method
httpget.releaseConnection();
Cheers
Oleg
On Tue, 2003-04-01 at 20:29, Kireitchik, Valeri wrote:
> Hello people,
>
> probably somebody has an expiereance in passing through Microsoft ISA Server (former
> Proxy Server). I have tried all what I could find in HttpClient but if
> authorization_required = true on ISA, I get 403 or 407 error.
>
> If somebody has a sample of working code I would appreciate your kind help very much.
>
> Best regards
>
> Mr. Valeri Kireitchik
>
> Deputy Director
> ITC-M, Unitary Enterprise
>
> Y. Kolasa str., 73, office 1007
> 220113 Minsk
> Republic of Belarus
> ph.: +375 (17) 262 50 23
> fax: +375 (17) 262 55 91
> ICQ: 171993774
> www.sis-group.com
>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]