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

Community Tip - Visit the PTCooler (the community lounge) to get to know your fellow community members and check out some of Dale's Friday Humor posts! X

HTTP/HTTPS request to Thingworx Composer

Pavelvanin1996
7-Bedrock

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 .

Announcements


Top Tags