Documentation ¶
Index ¶
- Variables
- func DoGet(uri string, args ...string) (status int, rv string)
- func DoGetHeader(uri string, hdr []HeaderType, args ...string) (status int, rv string)
- func DoPost(uri string, args ...string) (status int, rv string)
- func DoPostHeader(uri string, hdr []HeaderType, args ...string) (status int, rv string)
- func GenRandBytes(nRandBytes int) (buf []byte, err error)
- func GenRandNumber(nDigits int) (buf string, err error)
- func SetupGet(d map[string]bool)
- type HeaderType
Constants ¶
This section is empty.
Variables ¶
View Source
var GetTimeout = 15
View Source
var PostTimeout = 15
Functions ¶
func DoGet ¶
Modified to send Header!
--------------------------------------------- // Xyzzy101 - Setup QR Redirect ---------------------------------------------
export QR_SHORT_AUTH_TOKEN="w4h0wvtb1zk4uf8Xv.Ns9Q7j8" wget -o out/,list1 -O out/,list2 \ --header "X-Qr-Auth: ${QR_SHORT_AUTH_TOKEN}" \ "http://t432z.com/upd/?url=http://test.test.com&id=5c" -- 1. DoGet - change to create a header -- 2. Example Call to set this
func DoGetHeader ¶
func DoGetHeader(uri string, hdr []HeaderType, args ...string) (status int, rv string)
func DoPostHeader ¶
func DoPostHeader(uri string, hdr []HeaderType, args ...string) (status int, rv string)
func GenRandBytes ¶
============================================================================================================================================ Should move to aesccm package
func GenRandNumber ¶
Generate a random number, 0..N, returned as a string with 6 to 8 non-zero digits.
Types ¶
type HeaderType ¶
Click to show internal directories.
Click to hide internal directories.