Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
20b353780b | ||
|
|
eda1ba83ab |
@@ -167,6 +167,7 @@ func (cli *Client) Open(label, urlstr string) (bodyRes string, ok bool) {
|
||||
data := url.Values{}
|
||||
data["url"] = []string{urlstr}
|
||||
data["callback"] = []string{cli.host + ":" + cli.port + "/" + callback.(Callback).hash}
|
||||
data["label"] = []string{label}
|
||||
resp, err := http.DefaultClient.PostForm(cli.chromeProxyAddr+"/task/put", data)
|
||||
if err != nil {
|
||||
panic(err)
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
package cplient
|
||||
package cpclient
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
|
||||
Reference in New Issue
Block a user