|
@@ -38,6 +38,10 @@ func HttpPost(url, postData string, params ...string) ([]byte, error) {
|
|
|
req.Header.Set("Content-Type", contentType)
|
|
|
req.Header.Set("authorization", utils.MD5(utils.APP_EDB_LIB_NAME_EN+utils.EDB_LIB_Md5_KEY))
|
|
|
resp, err := client.Do(req)
|
|
|
+ if err != nil {
|
|
|
+ fmt.Println("client.Do err:" + err.Error())
|
|
|
+ return nil, err
|
|
|
+ }
|
|
|
defer resp.Body.Close()
|
|
|
b, err := ioutil.ReadAll(resp.Body)
|
|
|
fmt.Println("HttpPost:" + string(b))
|