summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 7571534)
raw | patch | inline | side by side (parent: 7571534)
author | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 21 Jun 2003 05:23:03 +0000 (05:23 +0000) | ||
committer | Karl DeBisschop <kdebisschop@users.sourceforge.net> | |
Sat, 21 Jun 2003 05:23:03 +0000 (05:23 +0000) |
remove '-' from URI_PORT
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@549 f882894a-f735-0410-b71e-b25c423dba1c
git-svn-id: https://nagiosplug.svn.sourceforge.net/svnroot/nagiosplug/nagiosplug/trunk@549 f882894a-f735-0410-b71e-b25c423dba1c
plugins/check_http.c | patch | blob | history |
diff --git a/plugins/check_http.c b/plugins/check_http.c
index 35ca748465f697ff8454aa32888484238df455eb..468e4c22daf5e22e718639163e92a6a526f02b02 100644 (file)
--- a/plugins/check_http.c
+++ b/plugins/check_http.c
#define server_port_check(use_ssl) (use_ssl ? HTTPS_PORT : HTTP_PORT)
+/* per RFC 2396 */
+
#define HDR_LOCATION "%*[Ll]%*[Oo]%*[Cc]%*[Aa]%*[Tt]%*[Ii]%*[Oo]%*[Nn]: "
#define URI_HTTP "%[HTPShtps]://"
#define URI_HOST "%[-.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
-#define URI_PORT ":%[-0123456789]"
-#define URI_PATH "%[-_=@,?&#;/.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
+#define URI_PORT ":%[0123456789]"
+#define URI_PATH "%[-_.!~*'();/?:@&=+$,%#abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]"
enum {
MAX_IPV4_HOSTLENGTH = 255,