Author |
Message
|
visasimbu |
Posted: Tue Jun 27, 2017 10:37 pm Post subject: The plain HTTP request was sent to HTTPS port |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
are trying to send post request to webservice hosted in different server (implemented in JAVA).
IIB v9.0.0.5 is used.
We have two issues.
1) When we send request using HTTP request node. Receiving error as
"plain HTTP request was sent to HTTPS port"
Note - Used Protocol as 'SSL' which is default in HTTP Request node.
Error message :
ttp Status code: 400 .Error is:<html>
<head><title>400 The plain HTTP request was sent to HTTPS port</title></head>
<body bgcolor="white">
<center><h1>400 Bad Request</h1></center>
<center>The plain HTTP request was sent to HTTPS port</center>
<hr><center>nginx/1.10.2</center>
</body>
</html>
2) sending order number in query string. Like to send order number what ever received, means order number might have 0 precedence (Ex : 0000500000000031790). But the query sting will discard the 0 and sending the request. I have tried casting as character but it converted something like ' 5.0003001314063E+13'. How can we send this(0000500000000031790) in querysting which is comes from xml field.
SET OutputLocalEnvironment.Destination.HTTP.QueryString.orderNumber = CAST(sourceOrderNum AS INTEGER); |
|
Back to top |
|
 |
Vitor |
Posted: Wed Jun 28, 2017 2:26 am Post subject: Re: The plain HTTP request was sent to HTTPS port |
|
|
 Grand High Poobah
Joined: 11 Nov 2005 Posts: 26093 Location: Texas, USA
|
visasimbu wrote: |
We have two issues.
1) When we send request using HTTP request node. Receiving error as
"plain HTTP request was sent to HTTPS port"
Note - Used Protocol as 'SSL' which is default in HTTP Request node.
|
Have you checked the SSL configuration you've supplied the broker / execution group with?
visasimbu wrote: |
2) sending order number in query string. Like to send order number what ever received, means order number might have 0 precedence (Ex : 0000500000000031790). But the query sting will discard the 0 and sending the request. I have tried casting as character but it converted something like ' 5.0003001314063E+13'. How can we send this(0000500000000031790) in querysting which is comes from xml field.
SET OutputLocalEnvironment.Destination.HTTP.QueryString.orderNumber = CAST(sourceOrderNum AS INTEGER); |
CAST it as a CHAR with a FORMAT parmeter. _________________ Honesty is the best policy.
Insanity is the best defence. |
|
Back to top |
|
 |
visasimbu |
Posted: Wed Jun 28, 2017 2:57 am Post subject: Re: The plain HTTP request was sent to HTTPS port |
|
|
 Disciple
Joined: 06 Nov 2009 Posts: 171
|
Vitor wrote: |
Have you checked the SSL configuration you've supplied the broker / execution group with? |
Yes. I have supplied the cert in JKS file. I believe if we issue in SSL config issue broker should through issue in certificates instead of protocol issue.
Vitor wrote: |
CAST it as a CHAR with a FORMAT parmeter. |
Yes i have tried to cast to CHAR and got same result. |
|
Back to top |
|
 |
mqjeff |
Posted: Wed Jun 28, 2017 4:07 am Post subject: Re: The plain HTTP request was sent to HTTPS port |
|
|
Grand Master
Joined: 25 Jun 2008 Posts: 17447
|
visasimbu wrote: |
Yes. I have supplied the cert in JKS file. |
Is that the right place to put the key for an HTTPRequest node? _________________ chmod -R ugo-wx / |
|
Back to top |
|
 |
|