--- 300.statistics.orig 2011-09-06 14:30:53.572040919 +0900 +++ 300.statistics 2011-09-06 14:32:56.860042305 +0900 @@ -171,7 +171,7 @@ # Make the request - string_length=`echo ${query_string} | wc -m` + string_length=`echo ${query_string} | wc -m | sed 's/^ *//'` string_length=`expr ${string_length} - 1` echo "POST ${url_prefix}/scripts/report_ports.php HTTP/1.0