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
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 HTTPS hostname wrong: should be <>, but cert says <>
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

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