Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持纯文本请求导入 #139

Closed
guonaihong opened this issue Dec 21, 2019 · 0 comments
Closed

支持纯文本请求导入 #139

guonaihong opened this issue Dec 21, 2019 · 0 comments

Comments

@guonaihong
Copy link
Owner

guonaihong commented Dec 21, 2019

出发点

有时候使用wireshark 调试接口,希望有一个流量重放的功能。支持纯文本导入就是为了实现这个愿望。

伪代码如下

s := `
GET / HTTP/1.1
Host: www.baidu.com
Authorization: Basic cmw6
User-Agent: curl/7.58.0
Accept: */*
Content-Length: 235
Content-Type: multipart/form-data; boundary=------------------------477bd959b7aecd68

--------------------------477bd959b7aecd68
Content-Disposition: form-data; name="text"

a
--------------------------477bd959b7aecd68
Content-Disposition: form-data; name="voice"

b
--------------------------477bd959b7aecd68--
`

err := gout.NewImport().RawText(s).Do()
if err != nil {
}
This was referenced Dec 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant