Posted: Sun Jan 26, 2014 7:49 pm Post subject: HTTPRequest Node got Error - Unrecognized SSL msg plain conn
Newbie
Joined: 10 Jan 2014 Posts: 5
Hi,
I have a HTTPRequest node and I need to send request to a secured url with https with basic authentication.
I set the username and password in Output Root and set url
Quote:
SET OutputRoot.Properties.IdentitySourceType = 'usernameAndPassword';
SET OutputRoot.Properties.IdentitySourceToken = WS_OUT_USERNAME;
SET OutputRoot.Properties.IdentitySourcePassword = WS_OUT_PASSWORD;
I got the error as
javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection? (CHARACTER)
I am unable to understand what is the problem.
ALSO to change this completly I rewrote the code and set directly on HTTPRequestHeader
Quote:
SET OutputRoot.HTTPRequestHeader.ContentType = 'text/xml; charset=utf-8';
SET OutputRoot.HTTPRequestHeader."X-Original-HTTP-URL" = HTTP_REQUEST_URL;
SET OutputRoot.HTTPRequestHeader."Authorization" = 'Basic '||base64Encode(CAST((WS_OUT_USERNAME||':'||WS_OUT_PASSWORD) as BLOB CCSID InputRoot.Properties.CodedCharSetId));
The url uses to connect has no port number that would assume it has default port 443.
Also I also set the Protocol as SSL did not work , getting the same error.
Also again I changed and set Protocol as TLS , did not work, getting same error.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum