curl of Mac OS X 10.5 doesn't support --data-urlencode
authorAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 11:48:14 +0000 (12:48 +0100)
committerAlexander Barton <alex@barton.de>
Mon, 14 Dec 2009 11:48:14 +0000 (12:48 +0100)
client/bin/nagcollect

index 6602c5adab383ae757627ab2af4b5fb9dc7ab4b1..4203b8f71e47f45f839a1d2ea7f4d41896b0603c 100755 (executable)
@@ -38,11 +38,11 @@ function refreshTestScripts()
 function submitService()
 {
        curl --insecure --fail --output /dev/null --silent --max-time $MAXTIME \
-               --data-urlencode "key=$CLIENT_KEY" \
-               --data-urlencode "host=$CLIENT_ID" \
-               --data-urlencode "service=$1" \
-               --data-urlencode "status=$2" \
-               --data-urlencode "text=$3" \
+               --data "key=$CLIENT_KEY" \
+               --data "host=$CLIENT_ID" \
+               --data "service=$1" \
+               --data "status=$2" \
+               --data "text=$3" \
                "${SERVER_URL}/nagcollect.php" ; r=$?
        return $r
 }