Host Engineering Forum

General Category => General Discussion => Topic started by: EliWaldner on February 18, 2022, 05:00:49 PM

Title: HTTPCMD
Post by: EliWaldner on February 18, 2022, 05:00:49 PM
Can anyone help me set up a HTTPCMD function? Below is a screen shot of the curl that works in a browser and one of how we have tried to setup the HTTPCMD but we need to get the information into a BRx PLC. We have attached a screen shot of the response we are getting. What are we doing wrong? Any help would be appreciated! Thanks in advance.
Title: Re: HTTPCMD
Post by: franji1 on February 18, 2022, 05:16:13 PM
You are using https from the curl command line (secure), but you are using port 80, no TLS from HTTPCMD (non-secure).  I'm going to guess that if you use http (not https) from the curl command line (non-secure), you will get the same/similar error as HTTPCMD.

You need to use TLS from HTTPCMD (see checkbox).

Also, I don't believe you need to include the "https://" portion in the request, since that is implied by using TLS checkbox.
Title: Re: HTTPCMD
Post by: EliWaldner on February 19, 2022, 10:47:58 AM
Thanks franji1! That did the trick. Thanks again for pointing us in the right direction!