>
> response = requests.request("GET", url, data=payload, headers=headers,
> *params=params*)
if auth is a header then set the appropriate header :
https://golang.org/pkg/net/http/#Header.Set
if it is basic auth you need to implement then look at the spec :
https://en.wikipedia.org/wiki/Basic_access_authentication
You didn't explain what you expect "auth" or "params" to be .
Le mardi 13 décembre 2016 06:46:23 UTC+1, [email protected] a écrit :
>
> Hi,
>
> In Python, I can include params like this:
>
> =====================
>
> *params = {'auth': 'XXXXXXXX'}*
>
> response = requests.request("GET", url, data=payload, headers=headers,
> *params=params*)
>
> =====================
>
> Any pointers on how Golang does this?
>
> Thanks,
> Betsy
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.