Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Default Credentials are taken by HttpClient Program  RSS feed

Venkatesan Jayaram
Posts: 2
  • 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.

  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!