func HTTPRedirect(t TestingT, handler http.HandlerFunc, mode, url string, values url.Values) bool {
    code := httpCode(handler, mode, url, values)
    if code == -1 {
        return false
    }