thunder-client-support icon indicating copy to clipboard operation
thunder-client-support copied to clipboard

Need Proxy Support while making a Request...

Open Zaeem20 opened this issue 3 years ago • 17 comments

Hey Rangav,

I am using you're extension and it was pretty impressive and powerful, but one thing that i want to ask with you, that will you add a proxy options in the menu , means we can make a request through proxy too... Coz it will help for debugging APIs too

Please implement it in next version if you like the suggestion hope you will find it what i want with you... Regards: Zaeem Technical

Zaeem20 avatar Aug 05 '22 18:08 Zaeem20

Hi @Zaeem20

Proxy is already support, please see docs below https://github.com/rangav/thunder-client-support#proxy

rangav avatar Aug 05 '22 19:08 rangav

where bro

Zaeem20 avatar Aug 06 '22 10:08 Zaeem20

https://github.com/rangav/thunder-client-support#proxy

rangav avatar Aug 06 '22 10:08 rangav

yeah i got it, but can you make it more reliable means adding an option in thunderclient

Zaeem20 avatar Aug 06 '22 18:08 Zaeem20

Screenshot 2022-08-06 at 19 09 51

You need to enter the value above in this http://username:password@host:port

We can provide our own setting, then user has to change proxy in 2 places, which is more hassle.

What is your suggestion?

rangav avatar Aug 06 '22 18:08 rangav

yeah i got it but can you add this in thunder client only as an option every time move to settings and change proxy is not much convenient

can you make it like postman

like this one Screenshot 2022-08-06 at 23-49-57 post man proxy configure - Google Search

Zaeem20 avatar Aug 06 '22 18:08 Zaeem20

i hope you understand what i want...

Zaeem20 avatar Aug 06 '22 18:08 Zaeem20

@Zaeem20 thanks got it.

What do you change frequently? will you turn it on/off or you change proxy values frequently?

rangav avatar Aug 06 '22 18:08 rangav

@Zaeem20 thanks got it.

What do you change frequently? will you turn it on/off or you change proxy values frequently?

yep i think now you actually got it...

Zaeem20 avatar Aug 07 '22 08:08 Zaeem20

Hey @rangav

Can you add label of in_progress if you started working on it, so that i can confirm is my suggestion is helpful or not...

Zaeem20 avatar Aug 11 '22 13:08 Zaeem20

Sure when I started working will add in_progress label

rangav avatar Aug 11 '22 13:08 rangav

Can you please answer this, so I can think of a good solution

  • will you turn proxy on/off frequently
  • you change proxy server values frequently?

rangav avatar Aug 11 '22 21:08 rangav

@rangav yes i want this features only...

Zaeem20 avatar Aug 12 '22 12:08 Zaeem20

partly off topic

I did run into proxy issues.

From vs code settings

// The proxy setting to use. If not set, will be inherited from
// the `http_proxy` and `https_proxy` environment variables.
"http.proxy": "",

My user environment variables did include the variables HTTP_PROXY and HTTPS_PROXY and NO_PROXY. But in my case it seems that having them is counter productive.

After i renamed these variables to somehting like aa_HTTP_PROXY the proxy problem with thunder_client / vs code was solved.

surfmuggle avatar Sep 01 '22 12:09 surfmuggle

@rangav, in my case, independent proxy setting – preferably configured per Thunder Client environment – would solve the problem of testing APIs in multiple environments (i.e. public and local):

During development, having multiple API microservices running in a local environment, I make them accessible under several localhost subdomains (e.g. http://api1.localhost, http://api2.localhost)[^1]. As normally, without any kind of a local DNS configuration, these domains are not resolved to the local network interface, I am configuring a proxy in VSC (http://localhost) which routes all requests to my machine. This solves the problem but is very inconvenient, as every time I want to use Thunder Client to test the publicly deployed instances of those API and/or use it in different scenarios/projects, I need to change global VSC proxy settings back and forth.

On the other hand, it is worth noticing that applications like Postman and Chrome are directing all *.localhost requests to the loopback interface – without any need to configure anything.

Thank you for your hard work. Regards.

[^1] I am using a local instance of Traefik proxy and domain based routing for that, but this is not the merits of the problem here...

pawelsmolenski avatar Mar 07 '23 07:03 pawelsmolenski

Yeah, proxy setting via environment would be cool. HttpYac has per environment setting for proxy which is very useful for me.

beholdr avatar Apr 28 '23 09:04 beholdr

I'm also having trouble with proxies. I need to configure a (global) proxy in VSCode's settings. But for certain requests I want to use from within Thunder I need to exclude several domains. I used the Thunder Client's settings for that (even "for all profiles") but the requests still didn't work. Only when I removed the VSCode global proxy setting the requests worked in Thunder. So for me the exclusion doesn't work currently. But, as I read here, it's a complicated problem!

metawops avatar Feb 08 '24 10:02 metawops