Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

The HTTP API allows receiving data in xml XML format for further processing in scripts. To send a file, perform a POST request.

General request format:

POST http://IP-address:port/intellect_core/{Any}

Code Block
languagexml
<tag1>
    <tag2>some_data</tag2>
    <tag3>another_data</tag3>
</tag1>

Request parameters:

Parameter

Is required

Required

Description

AnyYes

Any set of valid characters can be specified

instead of "Any" at the end of the command

, except for

"

Event

"

and

"

React

"

, for example:

https
  • http://127.0.0.1:8080/intellect_core
https
  • http://127.0.0.1:8080/intellect_core/Any
https
  • http://127.0.0.1:8080/intellect_core/Custom

...


Info
titleNote

In the requests, it is necessary to specify the port set up in the Web server settings — see Configuring the Web-server module.

Request example:

POST httpshttp://127.0.0.1:8080/intellect_core/Any

Code Block
languagexml
<tag1>
    <tag2>some_data</tag2>
    <tag3>another_data</tag3>
</tag1>

...

Response example:

After receiving the data in xml XML format in Intellect, the following event is generated:

HTTP|1|CUSTOM_EVENT|url</intellect_core/Any>,owner<SLAVE-ID>,data<PG5..90ZT4=>

Response parametersResponse parameters:

Parameter

Description

data

Request body (

i.e. the above xml

XML in the example above) base64-encoded

.

url Part of the posted url
.