[NSE] RFC: Adding HTTP protocol version to the response table
nnposter <[email protected]>
| Newsgroups | gmane.comp.security.nmap.devel |
|---|---|
| Message-ID | <[email protected]> |
Library http.lua is already parsing the status line of HTTP responses, including the HTTP protocol version. This information should be captured so that other code does not need to re-implement the version extraction. I am proposing version as a new member of the response table. The value is a string, as extracted from the status line. A consuming code could use it as follows: if response.version >= "1.1" then ... This issue, including the actual patch, is documented at https://github.com/nmap/nmap/issues/934 Please let me know if you have any questions or concerns. Cheers, nnposter _______________________________________________ Sent through the dev mailing list https://nmap.org/mailman/listinfo/dev Archived at http://seclists.org/nmap-dev/