Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/546669204/golang-http-do

模拟表单 GET POST 提交基于golang
https://github.com/546669204/golang-http-do

golang

Last synced: 12 days ago
JSON representation

模拟表单 GET POST 提交基于golang

Awesome Lists containing this project

README

        

# golang-http-do
模拟表单 GET POST 提交基于golang

把常用的模拟http提交函数 拎出来 方便维护 调用

#demo

```
op := httpdo.Default()
op.Url = fmt.Sprintf(`http://www.baidu.com`, d)
op.Header = `referer: https://www.baidu.com\ncookie: ssid=1465qw7e9wq87ewqew`
httpbyte, err := httpdo.HttpDo(op)
if err != nil {
log.Println(err)
}
log.Println(string(httpbyte))
```