News:

  • February 05, 2023, 06:19:13 PM

Login with username, password and session length

Author Topic: HTTPCMD  (Read 346 times)

EliWaldner

  • Newbie
  • *
  • Posts: 7
HTTPCMD
« 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.

franji1

  • Bit Weenie
  • Host Moderator
  • Hero Member
  • *****
  • Posts: 3468
    • Host Engineering
Re: HTTPCMD
« Reply #1 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.

EliWaldner

  • Newbie
  • *
  • Posts: 7
Re: HTTPCMD
« Reply #2 on: February 19, 2022, 10:47:58 AM »
Thanks franji1! That did the trick. Thanks again for pointing us in the right direction!