Nmap Development mailing list archives

Re: [NSE patch] patch for http.lua to support chunked encoding


From: Fyodor <fyodor () insecure org>
Date: Fri, 29 Aug 2008 02:24:41 -0700

On Sun, Aug 24, 2008 at 01:20:55AM +0200, Sven Klemm wrote:
Hi,

currently the NSE http library does not support chunked encoding. When 
the server sends an answer with transfer-encoding chunked the answer 
does not get properly "dechunked" and the body in the document will 
contain the chunk metadata. The attached patch adds support for 
chunked encoding to the http library.
The patch also changes the way the body of the document is 
concatenated. Currently the http library uses "\r?\n" as line 
separator and "\n" when concatenating. The patch changes this to use 
"\r\n" in both cases so the document is no longer modified by the http 
library.

Looks good, and I've applied it to svn.

-F

_______________________________________________
Sent through the nmap-dev mailing list
http://cgi.insecure.org/mailman/listinfo/nmap-dev
Archived at http://SecLists.Org


Current thread: