-
Notifications
You must be signed in to change notification settings - Fork 197
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
Proxying localhost http requests is not working. #2251
Comments
You should edit the host file, so Proxyman can capture your localhost traffic, for example: http://localhost:3000 The reason is that no local traffic uses the proxy. It's how macOS works, and it's not a bug from Proxyman |
I already wrote... 'i've even set the value in the hosts file.' i followed your docs. |
Just tested: http://localhost.proxyman.io:4000 works fine. It capture localhost:4000 ![]()
|
can you share your host file? and your URL? It's difficult to debug if you don't share anything except it didn't work |
Host Databaselocalhost is used to configure the loopback interfacewhen the system is booting. Do not change this entry.127.0.0.1 localhost I have a service running on localhost:8080 localhost:8080 and/or localhost.proxyman.io:8080 |
ok, the problem is cURL doesn't use HTTP Proxy. It goes to the Internet. Try
Or access it from Safari:
|
if you don't want to use --proxy flag, just open Proxyman -> Setup Menu -> Automatic Setup -> New Terminal -> Run your cURL here. It auto proxies to Proxyman |
ok, so the problem for me is, I want to capture all the http traffic. Not just the browser and some apps are curl wrappers, like postman. I have a nodejs service that makes requests to lcoalhost:8080 and this is what I want to capture the traffiic for. So proxyman can only capture browser traffic? |
it's tricky to capture NodeJS requests, but Proxyman can work with 1 click by using the Automatic Setup that I show you in the previous chat. Works with NodeJS: Axios, got, superagent, fetch, and node-fetch.
|
ok, I will try. thank you for the help. |
intercepting localhost does not work.
i've removed the filter in the proxy settings.
i've tried using localhost.proxyman.io.
i've even set the value in the hosts file.
i'm on macos, latest version, fully updated.
either i'm doing something wrong proxyman is broken
The text was updated successfully, but these errors were encountered: