Skip to main content
Skip table of contents

The Proxy module

The module proxies HTTP requests to the specified endpoint. For this purpose, an additional X-Targeted-Forheader is used in the requests. The headers X-Targeted-Username and X-Targeted-Password are used for login and password in Digest authentication.

For example:

BASH
curl -k --request POST \
    --url 'http://192.168.200.31:8776/onvif/event_service' \
    --header 'X-Targeted-For: http://192.168.204.25:80' \
    --header 'X-Targeted-Username: user' \
    --header 'X-Targeted-Password: 456789' \
    --header 'Accept: */*' \
    --header 'Content-Type: text/xml; charset=utf-8' \
    --header 'Host: 127.0.0.1'
    --data '{"message": "Hello"}'

This request is the same as if the client directly contacted the host:

BASH
curl -k --request POST \
    --url 'http://192.168.204.25:80/onvif/event_service' \
    --header 'Accept: */*' \
    --header 'Content-Type: text/xml; charset=utf-8' \
    --header 'Host: 127.0.0.1'
    --data '{"message": "Hello"}'

The configuration of Proxy is detailed in the Configuration of Mediaserver documentation section.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.