You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installed via winget. updated devproxyrc.json with "rate": 100,
If I use powershell devproxy works. If I use anything else it doesn't.
Expected behaviour
I'd expext request using curl from the command prompt to go through devproxy and an error returned. I'd expect the same for httpClient requests from inside my .NET app.
Actual behaviour
Windows Terminal Powershell Invoke-WebRequest -Uri https://jsonplaceholder.typicode.com/posts/1 returns an error via devProxy, as expected
Windows Terminal Command Prompt curl -X GET https://jsonplaceholder.typicode.com/posts/1 always returns a 200 Json response
If I'm not mistaken, curl doesn't automatically pick up Windows proxy settings. So instead, you need to either configure proxy using the environment variable http_proxy or specify proxy in curl like curl -ix http://127.0.0.1:8000 https://jsonplaceholder.typicode.com/posts
Activity
waldekmastykarz commentedon Aug 9, 2024
If I'm not mistaken, curl doesn't automatically pick up Windows proxy settings. So instead, you need to either configure proxy using the environment variable
http_proxyor specify proxy in curl likecurl -ix http://127.0.0.1:8000 https://jsonplaceholder.typicode.com/posts