Changeset 4a67d452816c39b086e4f2ba5be9d12cf51aa81b
- Timestamp:
- 09/25/09 22:13:30
(4 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
| r72e62f7 |
r4a67d45 |
|
| 43 | 43 | required="required" |
|---|
| 44 | 44 | 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> |
|---|
| 45 | 49 | <parameter name="ca_chain" |
|---|
| 46 | 50 | required="optional" |
|---|
| … | … | |
| 119 | 123 | local good = false |
|---|
| 120 | 124 | local starttime = noit.timeval.now() |
|---|
| | 125 | local method = check.config.method or "GET" |
|---|
| 121 | 126 | |
|---|
| 122 | 127 | if host == nil then host = check.target end |
|---|
| … | … | |
| 168 | 173 | local headers = {} |
|---|
| 169 | 174 | headers.Host = host |
|---|
| 170 | | client:do_request("GET", uri, headers) |
|---|
| | 175 | client:do_request(method, uri, headers) |
|---|
| 171 | 176 | client:get_response() |
|---|
| 172 | 177 | local endtime = noit.timeval.now() |
|---|