Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Default Credentials are taken by HttpClient Program  RSS feed

 
Venkatesan Jayaram
Greenhorn
Posts: 2
Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I am using the apache's commons-httpclient-3.1.jar to use the HttpClient to download a file in internet.

As per my requirement, I have to connect the external site using the proxy server only with diffent credential which is not my systems login user name and pasword.
While running the program I noticed that the code is not using the credentials what i have given in the code. It is using the credentials which is configured in IE browser.

Please find my follwoing code



What ever credentials I am giving in the code is not considered and the default credentials are taken from system and successfully downloading the files.

But the credentials given in the code only it should take.

Please help to resolve this issue.





 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!