diff options
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-21 05:23:03 +0000 |
---|---|---|
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | 2003-06-21 05:23:03 +0000 |
commit | 2bc296abb6df68eaed5c49b289ce996d3a39729e (patch) | |
tree | 6a65137a8784893175fa2f469f96ebd4438a3efd /plugins | |
parent | 7571534a9d26c5895006a47ce2ad1dd499deef60 (diff) | |
download | monitoring-plugins-2bc296abb6df68eaed5c49b289ce996d3a39729e.tar.gz |
add remaining URI_PATH chars per RFC 2396
remove '-' from URI_PORT
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@549 f882894a-f735-0410-b71e-b25c423dba1c
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/check_http.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/check_http.c b/plugins/check_http.c index 35ca7484..468e4c22 100644 --- a/plugins/check_http.c +++ b/plugins/check_http.c | |||
@@ -182,11 +182,13 @@ struct timeval tv; | |||
182 | 182 | ||
183 | #define server_port_check(use_ssl) (use_ssl ? HTTPS_PORT : HTTP_PORT) | 183 | #define server_port_check(use_ssl) (use_ssl ? HTTPS_PORT : HTTP_PORT) |
184 | 184 | ||
185 | /* per RFC 2396 */ | ||
186 | |||
185 | #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: " | 187 | #define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: " |
186 | #define URI_HTTP "%[HTPShtps]://" | 188 | #define URI_HTTP "%[HTPShtps]://" |
187 | #define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" | 189 | #define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" |
188 | #define URI_PORT ":%[-0123456789]" | 190 | #define URI_PORT ":%[0123456789]" |
189 | #define URI_PATH "%[-_=@,?&#;/.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" | 191 | #define URI_PATH "%[-_.!~*'();/?:@&=+$,%#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]" |
190 | 192 | ||
191 | enum { | 193 | enum { |
192 | MAX_IPV4_HOSTLENGTH = 255, | 194 | MAX_IPV4_HOSTLENGTH = 255, |