AHilberink Well-Known Member Licensed User Longtime User Nov 29, 2016 #1 Hi, I need to do a poststring to a HTTPS url. Is this possible and how do I have to implementate this? Now I get a Status Failed. Best regards, André
Hi, I need to do a poststring to a HTTPS url. Is this possible and how do I have to implementate this? Now I get a Status Failed. Best regards, André
Erel B4X founder Staff member Licensed User Longtime User Nov 29, 2016 #2 You don't need to do anything special. Just use a https url. AHilberink said: Now I get a Status Failed. Click to expand... Can you post the full error message from the logs. Upvote 0
You don't need to do anything special. Just use a https url. AHilberink said: Now I get a Status Failed. Click to expand... Can you post the full error message from the logs.
AHilberink Well-Known Member Licensed User Longtime User Nov 29, 2016 #3 Erel said: You don't need to do anything special. Just use a https url. Can you post the full error message from the logs. Click to expand... Hi Erel, I checked the error message within the log. It seems a difficulty with the hostname: javax.net.ssl.SSLException: hostname in certificate didn't match: <webapp.domainA.com> != <*.domainB.com> OR <*.domainB.com> OR <domainB.com> Is it possible that the connection is made by java with the mainserver and not through the webserver to the specific domain? Because of domain-addresses I didn't send the full log. Best regards, André Upvote 0
Erel said: You don't need to do anything special. Just use a https url. Can you post the full error message from the logs. Click to expand... Hi Erel, I checked the error message within the log. It seems a difficulty with the hostname: javax.net.ssl.SSLException: hostname in certificate didn't match: <webapp.domainA.com> != <*.domainB.com> OR <*.domainB.com> OR <domainB.com> Is it possible that the connection is made by java with the mainserver and not through the webserver to the specific domain? Because of domain-addresses I didn't send the full log. Best regards, André
AHilberink Well-Known Member Licensed User Longtime User Nov 30, 2016 #4 Hi, Could it be something to do with SNI? Is SNI supported? Best regards, André Upvote 0
AHilberink Well-Known Member Licensed User Longtime User Nov 30, 2016 #5 Hi, I found the solution. It appears to be SNI support. Switching to OkHTTP library solved the problem. Thanks all. Best regards, André Upvote 0
Hi, I found the solution. It appears to be SNI support. Switching to OkHTTP library solved the problem. Thanks all. Best regards, André