pocassist
pocassist copied to clipboard
POST存在换行和发包速率问题
application/x-www-form-urlencoded格式的POST数据,有换行的情况,需要strings.Replace(postdata, "\n", "\r\n", -1),否则发包不完整。 rate.NewLimiter()函数设置值有问题,第一个值应为MaxQps,第二个为瞬间并发数值。