Sending POST requests to the Target Server

If you wish to send POST data with your request, such as when submitting a form, please use the following syntax:

curl -X POST 'https://api.webit.live/api/v1/realtime/web' \
--header 'Authorization: Basic <credential string>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https://www.example.com",
    "method": "POST",
    "headers": {
    "Content-Type": "application/json",
        "Some-Extra-Header": "some-extra-header"
    },
    "body": {
        "a": 1,
        "b": 2
    }
}'

Please note that specifying a content-type header is required when submitting a POST request with data in the body.

Additional request options

ParameterRequiredDescription

method

Required

Use POST to send forms to the target site

headers

Optional

JSON with key/value structure to pass the required headers

body

Optional

JSON with key/value structure or string to pass needed payload

Last updated