My problem is this:
I have a go web app where I want to use the net/pprof package. The 
application itself is protected by a Apache server which keeps session, and 
sets a authorized header with the permissions the user should have. Then 
the go code will read the http header and depending on its value decide 
what Im allowed to look at. So let say to access /very-secret/x it will 
check that I have "superadmin" in the http header.

If I access /debug/pprof from a browser its all good, I have my session and 
the header will be set correctly by Apache. 

However, now I want to access /debug/pprof with `go tool pprof`. Is it 
possible to somehow call it with specific header? something like `go tool 
pprof -H webauth=superuser http://mypage`?

Thanks!
/Victor

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to