|
|
@ -1,6 +1,8 @@ |
|
|
|
package network |
|
|
|
|
|
|
|
import ( |
|
|
|
"bytes" |
|
|
|
"encoding/xml" |
|
|
|
"io/ioutil" |
|
|
|
"net/http" |
|
|
|
"strings" |
|
|
@ -97,7 +99,7 @@ func SendXml(method, url string, requestxml interface{}, header ...map[string]st |
|
|
|
|
|
|
|
httpClient := &http.Client{} |
|
|
|
|
|
|
|
req, err := http.NewRequest(method, url, bytes.NewBuffer(param)) |
|
|
|
req, err := http.NewRequest(method, url, bytes.NewBuffer(bytexml)) |
|
|
|
if err != nil { |
|
|
|
return []byte(""), err |
|
|
|
} |
|
|
|