postman-code-generators icon indicating copy to clipboard operation
postman-code-generators copied to clipboard

[Request feature] Proxy for code snippet

Open whitemalt opened this issue 6 years ago • 4 comments

generate proxy setting in code snippet. for now, I Just need in That will be great if this feature exists in postman. it helps me a lot of productivity

whitemalt avatar Aug 08 '19 03:08 whitemalt

@umeshp7 I would love to work on this issue. I was thinking to use http/s-proxy-agent module for generating proxy settings in NodeJS. What you say?

sastava007 avatar Mar 05 '20 10:03 sastava007

@sastava007 every language has different options to configure a proxy (e.g, --proxy in curl).

This feature request is about setting that proxy configuration (for different languages/code generators) if the given URL will be proxied if the request is sent via Postman as one can set-up proxy in Postman by either relying upon the system proxy or configuring a custom proxy.

I am not sure about the final implementation details but roughly every generator should accept a Postman Collection's ProxyConfig instance which can be used to set-up proxy options.

codenirvana avatar Mar 05 '20 11:03 codenirvana

Usually we don't want to set up proxy on a per request basis. Is there a specific use case you were targeting?

webholik avatar Nov 10 '20 04:11 webholik

@webholik for my case, I just need curl for a quick debug test connection. It's pretty cool if this feature exists.

PS. sorry for not active Github for a year

whitemalt avatar Oct 17 '21 06:10 whitemalt