Example #1
0
func TestHttp(t *testing.T) {
	b, err := fbuf.NewFbuf().Read("buff http://weibo.com/login.php")
	if err != nil {
		t.Error(err)
	}
	t.Log(string(b))
}
Example #2
0
func TestHttps(t *testing.T) {
	b, err := fbuf.NewFbuf().Read("buff https://github.com")
	if err != nil {
		t.Error(err)
	}
	t.Log(string(b))
}
Example #3
0
func TestPostHttps(t *testing.T) {
	b, err := fbuf.NewFbuf().Read("rebuff post http://www.w3school.com.cn/tiy/v.asp", map[string]string{
		"code": `11`,
		"bt":   "",
	})
	if err != nil {
		t.Error(err)
	}
	t.Log(string(b))
}