From c77294588ae05bb4177c9ac8bc5260ad999de896 Mon Sep 17 00:00:00 2001 From: leafee98 Date: Fri, 2 Dec 2022 11:42:18 +0800 Subject: [PATCH] More verbose comment. --- bwifi.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bwifi.sh b/bwifi.sh index 00d2329..ca58e45 100755 --- a/bwifi.sh +++ b/bwifi.sh @@ -32,7 +32,8 @@ if [ "$auth_host" == *"10.1.206.13"* ] ; then username="${username}@bistu" fi -# form data +# Note that the encoding of response is gb2312, so we need to transcode +# before comparing the title to judge whether we succeed to login. title=$(curl --no-progress-meter --include \ --data-urlencode "DDDDD=$username" \ --data-urlencode "upass=$password" \