HTTP pull source

    Use can specify the global HTTP pull settings here. The configuration items specified in default section will be taken as default settings for all HTTP connections.

    The URL where to get the result.

    method

    HTTP method, it could be post, get, put & delete.

    timeout

    The timeout for http request, time unit is ms.

    If it’s set to true, then will compare with last result; If response of two requests are the same, then will skip sending out the result.

    body

    The body of request, such as '{"data": "data", "method": 1}'

    headers

    The HTTP request headers that you want to send along with the HTTP request.

    Override the default settings

    If you have a specific connection that need to overwrite the default settings, you can create a customized section. In the previous sample, we create a specific setting named with . Then you can specify the configuration with option CONF_KEY when creating the stream definition (see for more info).

    Sample

    1. demo (
    2. ) WITH (DATASOURCE="test/", FORMAT="JSON", TYPE="httppull", KEY="USERID", CONF_KEY="application_conf");