[Reconnoiter-devel] [reconnoiter commit] r900 - trunk/src/modules-lua/noit/module

svn-commit at lists.omniti.com svn-commit at lists.omniti.com
Tue Sep 29 11:55:57 EDT 2009


Author: jesus
Date: 2009-09-29 11:55:56 -0400 (Tue, 29 Sep 2009)
New Revision: 900

Modified:
   trunk/src/modules-lua/noit/module/http.lua
Log:
support posts via config options. Thanks Leon.  closes #187

Modified: trunk/src/modules-lua/noit/module/http.lua
===================================================================
--- trunk/src/modules-lua/noit/module/http.lua	2009-09-29 05:29:23 UTC (rev 899)
+++ trunk/src/modules-lua/noit/module/http.lua	2009-09-29 15:55:56 UTC (rev 900)
@@ -49,6 +49,9 @@
                required="optional"
                allowed="\S+"
                default="GET">The HTTP method to use.</parameter>
+    <parameter name="payload"
+               required="optional"
+               allowed=".*">The information transferred as the payload of an HTTP request.</parameter>
     <parameter name="auth_method"
                required="optional"
                allowed="^(?:Basic|Digest|Auto)$">HTTP Authentication method to use.</parameter>
@@ -307,7 +310,7 @@
         check.status(str or "unknown error")
         return
     end
-    client:do_request(method, uri, headers)
+    client:do_request(method, uri, headers, check.config.payload)
     client:get_response()
 
     local endtime = noit.timeval.now()



More information about the Reconnoiter-devel mailing list