This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Trust Strategy Question  RSS feed

 
Joe Harry
Ranch Hand
Posts: 10128
3
Eclipse IDE Mac PPC Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a HTTPS url that I would like to call from my Apache HTTP Client. When I tried it with the following piece of code, it failed with the exception as below:





Later, I added the following and gave the connManager to my DefaultHttpClient constructor:



My question is with the above Strategy, am I bypassing any security? I'm overriding isTrusted and simply returning true. Is that advisable?
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!