How to send http request?

Please How to use code fences.

I strongly recommend using VSCode to edit .rules files. https://www.openhab.org/docs/configuration/editors.html#openhab-vs-code-extension

You have some very basic syntax errors and one logic problem.

  1. To access the state of an Item you must call .state, as in Roxcore_Control.state
  2. To do a comparison you must use ==. '=` is an assignment.
  3. The logic error is described here