-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feature request: support socks proxy #91
Comments
You could solve this using socks-proxy-agent (see sindresorhus/got#7 (comment)). Can you test the following if it works for you.
It is important to set If this works, I can consider adding this to httpyac. I can't really test it unfortunately. |
Since I don't run a SockJS proxy I can't test it unfortunately. If there is still a need for the feature, please just reopen the issue. |
I still haven't had time to give this a try. I got as far as pasting the code into my test script and then distracted. I think I need to figure out where the node is that httpyac runs, since I don't have a "system" node to work with. No need for any special proxy software, though. you can just open one via ssh with |
Thanks for the info. Will try the ssh approach:-) |
I have now tried the integration of the socks proxy. I also tested it using an SSH server, but if my test setup was correct, I am not 100% sure. Could you please test it once after release and give feedback? Thanks.
You can test the change with v4.9.0. |
Sorry for such a long delay in replying.. I tested your code above in I also tested it with servers I know require a proxy, and the requests time out, which suggests the proxy isn't activating. |
Phew, then I need help. I tested it with the Kubernetes Api, which is only accessible via Jumphost. I have performed the following steps:
ssh -D 1111 [email protected]
# @proxy socks://127.0.0.1:1111
# @noRejectUnauthorized
GET https://10.1.26.1:6443/openapi/v2 In the browser, the URL is not reachable. Without |
Please add a more detailed description of how I can recreate the problem. I will close the ticket until then, because I currently do not know how to follow up the problem. thanks. |
I use a socks proxy (via ssh) to communicate with servers inside of a VPC. It would be nice if this could be specified either directly in the
.http
file config, or via examples for how to set this up with an inline script.The text was updated successfully, but these errors were encountered: