roc

Results 121 comments of roc

检查下 err 是否为 nil,也开下 DevMode看看实际返回的跟rkBack结构是否一致

判断 err 是基础操作,如果不为 nil 一定要报出来方便排查

> digest两次连接,我感觉resp保留的是第一次401的空body,想看源代码,几次跳转.放弃,跟大佬求助 能否给可复现的代码,如不方便公开可发我邮箱 [email protected]

> ![Image](https://github.com/user-attachments/assets/37cae69b-423e-4aa5-8d41-0b1b2064fd38) > > 上图是postman的交互 > > 下面是的测试包 package main > > import ( "github.com/imroc/req/v3" ) > > func main() { client := req.C().DevMode() > > ``` > client.R(). >...

> client.R().SetDigestAuth 这个函数插件提示已经弃用 而且获取不到body,使用SetCommonDigestAuth,可以,但是如果我不想设置客户端级别的认证,我对单个网站做认证,应该怎么做 可以针对指定网站专门用一个 client

这是 HTTP2 吧,HTTP2 规范规定 header 必须都是小写,只有HTTP1才允许设置大小写

HTTP1可以用SetHeadersNonCanonical设置保留 header 的大小写

TLS and HTTP Fingerprinting, check this out: * https://req.cool/docs/tutorial/http-fingerprint/ * https://req.cool/docs/tutorial/tls-fingerprint/

Currently proxy is not supported for HTTP3, it may be difficult to implement, and contributions are welcome.