Skip to content
This repository has been archived by the owner on Aug 31, 2018. It is now read-only.

How to request https via proxy #140

Open
jun283 opened this issue Jun 7, 2017 · 0 comments
Open

How to request https via proxy #140

jun283 opened this issue Jun 7, 2017 · 0 comments

Comments

@jun283
Copy link

jun283 commented Jun 7, 2017

this is my script:

res, err := goreq.Request{
	Method:   "GET",
	Timeout:  time.Second * 60,
	Insecure: true,
	Proxy:    "https://104.196.63.107:443",
	Uri:      "https://sprucefinance.com",
}.Do()
if err != nil {
	fmt.Println(err.Error())
	os.Exit(9)
}

fmt.Println(res.Status)

'

result:

Bad Request

Did i do something wrong? How to request https status via proxy?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant