Skip to content

Commit

Permalink
remove test
Browse files Browse the repository at this point in the history
  • Loading branch information
pa001024 committed Sep 30, 2015
1 parent 0c85649 commit 785dc61
Showing 1 changed file with 1 addition and 20 deletions.
21 changes: 1 addition & 20 deletions netdialer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,26 +16,7 @@ import (
var dialer *Dialer

func init() {
dialer = NewDialer("[email protected]", "266174")
}

type TEMPSTR struct {
UserIP string `xml:"Redirect>UserIP"`
LoginURL string `xml:"Redirect>LoginURL"`
Uuid string `xml:"Redirect>Uuid"`
}

func TestStep1(t *t.T) {
par := url.Values{"wlanuserip": {"10.0.1.2"}}
body := ioutil.NopCloser(strings.NewReader(par.Encode()))
req, _ := http.NewRequest("POST", "http://115.239.134.163:8080/showlogin.do", body)
req.Header.Set("Content-Type", "application/x-www-form-urlencoded; ")
req.Header.Set("User-Agent", "China Telecom Client")
res, _ := http.DefaultClient.Do(req)
de := xml.NewDecoder(res.Body)
v := &TEMPSTR{}
de.Decode(v)
fmt.Println(v)
dialer = NewDialer("[email protected]", "123456")
}

func TestGetCryptUsername(t *t.T) {
Expand Down

0 comments on commit 785dc61

Please sign in to comment.