Since v1.0.0
Available on all platforms
See also

Configuration parameters

Makes an outbound HTTP call.

Note that the hosts which may be reached via WEBCALL might have been restricted through the use of the webcall.host.patterns Warp 10 configuration parameter.

The write token is here to check you have the right to send a webcall. If the write token is valid, then the request is sent. It will never be sent in the request.

The call to WEBCALL returns a UUID on the stack. The actual request is performed asynchronously, the UUID will appear in the X-Warp10-WebCall header or the header configured via http.header.webcall.uuid.



//For this example, open a socket on your machine //Launch a "nc -l 1234" in a terminal, to listen to the port 'INSERT_YOUR_VALID_WRITE_TOKEN_HERE' 'POST' 'http://localhost:1234/go' { 'one more header' 'Test' } <' BODY DATA BODY DATA... '> WEBCALL //output: // ~% nc -l 1234 // POST /go HTTP/1.1 // one more header: Test // User-Agent: Warp10-WebCall // X-Warp10-WebCall: 871bb536-3a1e-45e0-8fa0-913837531abb // Host: localhost:1234 // Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 // Connection: keep-alive // Content-type: application/x-www-form-urlencoded // Transfer-Encoding: chunked // // 16 // BODY DATA // BODY DATA... // 0