The moose likes Sockets and Internet Protocols and the fly likes Get works good,but Post donot,why? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Sockets and Internet Protocols
Reply Bookmark "Get works good,but Post donot,why?" Watch "Get works good,but Post donot,why?" New topic
Author

Get works good,but Post donot,why?

Blues Welis
Greenhorn

Joined: May 23, 2001
Posts: 6
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 ,
 
IntelliJ Java IDE
 
subject: Get works good,but Post donot,why?
 
Threads others viewed
java.io.IOException: HTTPS hostname wrong:
Exception java.io.IOException: HTTPS hostname wrong: Problem still perist.
jstl xslt listbox
Basic authentication using custom Login Module in WAS 6.1
SOAPConnection call with ip address
developer file tools