• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Trust Strategy Question

 
Joe Harry
Ranch Hand
Posts: 10082
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