Skip to main content
7-Bedrock
April 5, 2018
Question

HTTP/HTTPS request to Thingworx Composer

  • April 5, 2018
  • 1 reply
  • 27033 views

Набросок.pngHello! I have a problem with the HTTP request to the ThingWorx service. When I execute the HTTP request, I get the response (screenshot). Bad Request This combination of host and port requires TLS. But when I execute the HTTPS request, theservice starts and everything works fine. Help please! Sorry for my bad English.

1 reply

5-Regular Member
April 6, 2018

This is happening because you are making a HTTP request with port 8443 .And i think your 8443 port is serving a HTTPS request .That is why it is stating that it requires TLS .Can you try HTTP request with a valid non TLS port defined in your server.xml ? Generally it's 8080 but you might have configured it to some other value also .

7-Bedrock
April 6, 2018
How can I configure a different port value for an HTTP request?
5-Regular Member
April 6, 2018

Can you locate this kind of statement in your server.xml ?

 

Define a non-SSL/TLS HTTP/1.1 Connector on port 80
-->
<Connector port="80" protocol="org.apache.coyote.http11.Http11NioProtocol"
connectionTimeout="20000"
redirectPort="8443" />

 

Here the Connector port is for HTTP request ,like in the above case it is 80 .And any HTTP request will be handled from port 80.

 

Thanks ,

Mukul Narang