Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Get works good,but Post donot,why?  RSS feed

 
Blues Welis
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
a very annoy problom is :
when I use get request to a url in an application, It's ok, but when I use post method to request URL, it says
java.io.IOException: HTTPS hostname wrong: should be <192.0.0.93>, but cert says <www.XXX.com>
I use myself
hostcertificate to implement HostnameVerifier and
using setDefaultHostnameVerifier.when I use this for get and post method. get works good ,Post donot work.and says HTTPS hostname wrong.
another one is it seems when I use post after get request ,post works good.
very strange.
who can tell me why and how to handle it
ergent!!

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