We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9d3c6e0 commit d0932b7Copy full SHA for d0932b7
src/BenchmarksApps/TLS/scripts/invalid-header.lua
@@ -1,18 +1 @@
1
--- sends an invalid HTTP header (with space in the name)
2
-
3
-local host = "localhost"
4
5
-init = function(args)
6
- print("wrk ARGS:", #arguments, arguments[1])
7
- if #args > 0 then
8
- host = args[1]
9
- end
10
-end
11
12
--- before each request https://github.com/wg/wrk/blob/a211dd5a7050b1f9e8a9870b95513060e72ac4a0/SCRIPTING#L42
13
-request = function()
14
- return "GET /hello-world HTTP/1.1\r\n" ..
15
- "Host: " .. host .. "\r\n" ..
16
- "Invalid Header: value\r\n" ..
17
- "\r\n"
18
+wrk.headers["Invalid Header"] = "value"
0 commit comments