Support #1945
closedThe http output in lua
Description
can't get Method,uri, Protocol in the API HttpGetRawRequestHeaders.
can't get response code in HttpGetRawResponseHeaders
for example, in one raw http.
The HttpGetRawRequestHeaders will get:
Host: www.xx.com
Connection: keep-alive
Cache-Control: max-age=0
If-Modified-Since: 0
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.71 Safari/537.36
Accept: */*
DNT: 1
Referer: http://www.xx.com/
Accept-Encoding: gzip, deflate, sdch
Accept-Language: q=0.8,en-US;
Cookie: 478074328445
miss "GET / HTTP/1.1"
The HttpGetRawResponseHeaders will get :
Server: squid/3.5.20
Date: Wed, 02 Nov 2016 08:12:09 GMT
Content-Type: text/html
Transfer-Encoding: chunked
Connection: keep-alive
Vary: Accept-Encoding
Expires: Wed, 02 Nov 2016 08:14:09 GMT
Cache-Control: max-age=120
Vary: Accept-Encoding
Content-Encoding: gzip
Vary: Accept-Encoding
miss HTTP/1.1 200 OK
Updated by Victor Julien about 8 years ago
- Tracker changed from Bug to Support
This is expected behavior. For the request line and response line see:
http://suricata.readthedocs.io/en/latest/output/lua-output.html#httpgetrequestline
http://suricata.readthedocs.io/en/latest/output/lua-output.html#httpgetresponseline