req icon indicating copy to clipboard operation
req copied to clipboard

Simple Go HTTP client with Black Magic

Results 65 req issues
Sort by recently updated
recently updated
newest added

The main difference between socks5 and socks5h lies in how they handle hostname resolution. Socks5: This is the standard SOCKS5 protocol, which is used for proxying network connections. It supports...

```go client := req.C() client.EnableHTTP3() client.EnableForceHTTP3() client.SetProxyURL("socks5://:@:") ``` HTTP3 works perfectly fine when the proxy is not set. When set, the HTTP3 stops working. Does proxy support UDP? Yes!

resp, err := client.R(). SetDigestAuth("name”."password”). SetBodyJsonMarshal(&Register). SetSuccessResult(&rkBack). Post("http://1.1.1.1/Register") rkBack 为nil 实际抓包,是有数据返回的

抱歉不太清楚重现步骤,是进程挂了以后看的日志: ``` panic: runtime error: invalid memory address or nil pointer dereference [signal SIGSEGV: segmentation violation code=0x1 addr=0x30 pc=0xb40547] goroutine 10779366 [running]: net/http/httptrace.ContextClientTrace(...) /usr/lib/go-1.21/src/net/http/httptrace/trace.go:25 github.com/imroc/req/v3.(*Transport).dialConn(0xc000007860, {0x0, 0x0}, {{}, 0x0, {0xc000135550,...

希望增加允许设置查询参数的排序

未来是否有计划支持graphql的请求 类似这个包:https://github.com/machinebox/graphql

How do I use a different proxy for each request

代码如下 ` dia := func(ctx context.Context, network, addr string) (net.Conn, error) { // Specify the custom IP address you want to connect to dialer := &net.Dialer{ Timeout: 800 * time.Millisecond,...

我有自定义ClientHelloSpec的需求,用SetTLSHandshake能解决,但能否新增一个设置ClientHelloSpec的方法,类似于下面这样: utls.HelloCustom 支持自定义ClientHelloSpec ```golang func (c *Client) SetTLSClientHelloSpec(spec *utls.ClientHelloSpec) *Client { fn := func(ctx context.Context, addr string, plainConn net.Conn) (conn net.Conn, tlsState *tls.ConnectionState, err error) { colonPos := strings.LastIndex(addr, ":")...

req: v3.43.7 golang: 1.22.6 已经设置了跳过证书验证,但是未解决问题 程序直接被panic退出,提示:panic: tls: LoadSessionCoordinator.onEnterLoadSessionCheck failed: session is set and locked, no call to loadSession is allowed 访问的地址:https://mdst.org.cn/index.php?c=category&id=27 提示需要凭据 问题: - 为什么会出现这个错误?应该怎么避免? - 为什么无法捕获直接导致整个程序退出?