hello everyone,
I am new to httpclient project, and I am trying to post some data to my account
on the web using httpclient and PostMethod. But, the web site is protected by
firewall, and I can not post my data..I am not sure what kind of firewall they
are using, and I tried to set basic authorization settings as follow:
client.getState().setCredentials(new
AuthScope(AuthScope.ANY_HOST,AuthScope.ANY_PORT,AuthScope.ANY_REALM),
//"www.verisign.com", 443, "realm"),
new UsernamePasswordCredentials("username", "password")
);
HttpClientParams hhcp = new HttpClientParams();
hhcp.setAuthenticationPreemptive(true);
client.setParams(hhcp);
//client.getState().setAuthenticationPreemptive(true);
get.setDoAuthentication(true);
I really do appreciate any help..
Thank you..
--teo
---------------------------------
Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.