To receive the answer from CloudWalk Switch, it is necessary to use the command network.receive to receive the first 4 bytes that indicates the size of the message, and then receive the rest of the message with a second network.receive call. This approach avoid timeouts and long wait times to receive the response from your HTTP endpoint.

Examples of HTTP verbs and paths

HTTP-VERB

PATH

VARIABLES

POST

/

buf=0123456789&anotherVariable=ABCDEF

POST

/index.php

foo=1&bar=2

GET

/list.asp

id=123

GET

/

DELETE

/products/28

Example of POSXML application

The following example can be used to test this kind of HTTP integration: