Vely logo install | documentation | examples | changelog
16.10.0 released May 10, 2023

Purpose: Obtain data that describes the input request.

get-req \
    data | errno | error | cookie-count | cookie <cookie index> \
        | arg-count | arg-value <arg index> | input-count | \
        | input-value <input index> | input-name <input index> \
        | header <header> | referring-url | method \
        | content-type | trace-file | process-id | name \
    to [ define ] <variable>

Variables related to an input request can be obtained with get-req statement and the result stored into <variable>. The following request variables can be obtained (they are strings except where stated otherwise):
Note that all the string values above (except "data") should be treated as constants - do not change them as that may cause program to malfunction. If you want to alter any of these values, make a copy first (see copy-string).
Get the name of current trace file:
get-req trace-file to define trace_file

See also
Request information ( get-req   input-param   request-body   set-input   set-req  )  SEE ALL (documentation)

Copyright (c) 2017-2023 Dasoftver LLC