go-socks5 icon indicating copy to clipboard operation
go-socks5 copied to clipboard

How to print request headers in this proxy

Open lutskboy opened this issue 1 year ago • 2 comments

Hi I need get all request headers. Please write example code. Thanks

lutskboy avatar Dec 02 '23 12:12 lutskboy

How about you learn to write it yourself? We may help if you have any questions, not to do your homework.

bfuertes avatar Dec 03 '23 17:12 bfuertes

I am tryed insert code in file request.go, but this not work for me Error req have not method Header Help me please. I'm sure it's simple, but I don't understand the language Golang. for key, values := range req.Header { for _, value := range values { fmt.Printf("%s: %s\n", key, value) } }

lutskboy avatar Dec 04 '23 11:12 lutskboy