cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

HTTP/HTTPS request to Thingworx Composer

Pavelvanin1996
6-Contributor

HTTP/HTTPS request to Thingworx Composer

Набросок.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.

6 REPLIES 6

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 .

How can I configure a different port value for an HTTP request?

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 

I'm using the trial version of Thingworx Studio. How can I change this setting in the cloud version of Thingworx Composer? Thanks for the answer!

Sincerely, Vanin Pavel

 

 

Hi,

I have the same problem, i try to access a service with http protocol on port 80. But i get an a 401 unauthorised error (i don't have any authentication)

 

Thanks

mnarang
17-Peridot
(To:jerlev)

On Trial version of Thingworx studio ,the cloud Thingworx composer will only work on HTTPS .It is maintained by R&D and will only work on HTTPS and port 8443 .And i think it's good to have a secure https connection instead of a http .

Top Tags