ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » The plain HTTP request was sent to HTTPS port

Post new topic  Reply to topic
 The plain HTTP request was sent to HTTPS port « View previous topic :: View next topic » 
Author Message
visasimbu
PostPosted: Tue Jun 27, 2017 10:37 pm    Post subject: The plain HTTP request was sent to HTTPS port Reply with quote

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
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Jun 28, 2017 2:26 am    Post subject: Re: The plain HTTP request was sent to HTTPS port Reply with quote

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
View user's profile Send private message
visasimbu
PostPosted: Wed Jun 28, 2017 2:57 am    Post subject: Re: The plain HTTP request was sent to HTTPS port Reply with quote

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
View user's profile Send private message Send e-mail
mqjeff
PostPosted: Wed Jun 28, 2017 4:07 am    Post subject: Re: The plain HTTP request was sent to HTTPS port Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » The plain HTTP request was sent to HTTPS port
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.