mirror of
https://github.com/QSCTech/zjunet.git
synced 2026-01-22 19:54:48 +08:00
remove iconv, fixes #35
This commit is contained in:
parent
b614536b6f
commit
00cd078724
@ -18,16 +18,10 @@ Command Line Scripts for ZJU (VPN / WLAN / DNS)
|
||||
|
||||
## Requirements
|
||||
|
||||
### vpn
|
||||
|
||||
- xl2tpd
|
||||
|
||||
### wlan
|
||||
|
||||
- curl
|
||||
|
||||
- iconv
|
||||
|
||||
## Install
|
||||
|
||||
### From source
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
VERSION=0.1.0-17
|
||||
VERSION=0.1.0-18
|
||||
|
||||
cd debian
|
||||
./build.sh $VERSION > /dev/null
|
||||
|
||||
@ -2,7 +2,7 @@
|
||||
|
||||
# wlan.sh -- login/logout for ZJUWLAN
|
||||
#
|
||||
# Requirements: curl, iconv
|
||||
# Requirements: curl
|
||||
#
|
||||
# Copyright (C) 2014 Zhang Hai <Dreaming.in.Code.ZH@Gmail.com>
|
||||
# Copyright (C) 2014 Zeno Zeng <zenoofzeng@gmail.com>
|
||||
@ -56,7 +56,7 @@ login() {
|
||||
logout $USERNAME $PASSWORD
|
||||
|
||||
echo "Login: ${USERNAME}"
|
||||
RESPONSE=$(curl "https://net.zju.edu.cn/cgi-bin/srun_portal" -H "Content-Type: application/x-www-form-urlencoded" -d "action=login&username=${USERNAME}&password=${PASSWORD}&ac_id=3&type=1&is_ldap=1&local_auth=1" -s | iconv -c -f gbk -t utf8)
|
||||
RESPONSE=$(curl "https://net.zju.edu.cn/cgi-bin/srun_portal" -H "Content-Type: application/x-www-form-urlencoded" -d "action=login&username=${USERNAME}&password=${PASSWORD}&ac_id=3&type=1&is_ldap=1&local_auth=1" -s)
|
||||
|
||||
case "${RESPONSE}" in
|
||||
*help.html*)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user