Changeset 4a67d452816c39b086e4f2ba5be9d12cf51aa81b

Show
Ignore:
Timestamp:
09/25/09 22:13:30 (5 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1253916810 +0000
git-parent:

[25263558f9eb21ca34ae6dd63f1436c6ce6caeb1]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1253916810 +0000
Message:

allow method specification, refs #187

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/modules-lua/noit/module/http.lua

    r72e62f7 r4a67d45  
    4343               required="required" 
    4444               allowed=".+">The URL including schema and hostname (as you would type into a browser's location bar).</parameter> 
     45    <parameter name="method" 
     46               required="optional" 
     47               allowed="\S+" 
     48               default="GET">The HTTP method to use.</parameter> 
    4549    <parameter name="ca_chain" 
    4650               required="optional" 
     
    119123    local good = false 
    120124    local starttime = noit.timeval.now() 
     125    local method = check.config.method or "GET" 
    121126 
    122127    if host == nil then host = check.target end 
     
    168173    local headers = {} 
    169174    headers.Host = host 
    170     client:do_request("GET", uri, headers) 
     175    client:do_request(method, uri, headers) 
    171176    client:get_response() 
    172177    local endtime = noit.timeval.now()