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 <126.96.36.199>, 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!!