directory
0.0.3-k8s-alpha0
Repository: https://github.com/davidwalter0/tools.git
Documentation: pkg.go.dev
# Packages
https://gist.githubusercontent.com/Rabbit52/a8a44c3c4cd514052952/raw/4ed391af30d39cde52c71bb7e1b5056189edb998/set_cookiejar.go.
#!/bin/bash
export CERT_DIR=/etc/certs/example.com
export APP_HOST=example.com;
export APP_PORT=8888 ;
export APP_ORGANIZATION=${APP_HOST} ;
export APP_CERT=${CERT_DIR}/example.com.crt ;
export APP_KEY=${CERT_DIR}/example.com.key ;
export APP_PATH=dist;
# local variables:
# mode: shell-script
# end:
*/ https://gowebexamples.com/sessions/
$ go run sessions.go
$ curl -s http://localhost:8080/secret
Forbidden
$ curl -s -I http://localhost:8080/login
Set-Cookie: cookie-name=MTQ4NzE5Mz..