description = [[ Example script for http pipeline ]] author = "s" license = "Same as Nmap--See http://nmap.org/book/man-legal.html" categories = {"discovery", "safe"} require("http") require("shortport") require("nsedebug") portrule = shortport.port_or_service({80, 443, 8080}, {"http", "https", "http-alt"}) action = function (host, port) local all = http.pGet( host, port, "/", nil, nil) --print(nsedebug.tostr(all)) --all = http.pGet( host, port, "/", nil, nil, all) --print(nsedebug.tostr(all)) all = http.pGet( host, port, "/index.html", nil, nil, all) --print(nsedebug.tostr(all)) print("pipeline") local responses = http.pipeline(host, port, all) print(nsedebug.tostr(responses[1].header)) end