"Fossies" - the Fresh Open Source Software Archive

Member "wrk-4.2.0/scripts/post.lua" (7 Feb 2021, 220 Bytes) of package /linux/www/wrk-4.2.0.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Lua source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 -- example HTTP POST script which demonstrates setting the
    2 -- HTTP method, body, and adding a header
    3 
    4 wrk.method = "POST"
    5 wrk.body   = "foo=bar&baz=quux"
    6 wrk.headers["Content-Type"] = "application/x-www-form-urlencoded"