go-socks5
go-socks5 copied to clipboard
How to print request headers in this proxy
Hi I need get all request headers. Please write example code. Thanks
How about you learn to write it yourself? We may help if you have any questions, not to do your homework.
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) } }