Monday, August 21, 2023

Invoke Web request by -passing proxy


We can invoke web request by passing proxy if proxy is configured at windows level
```sh 
 $request=[System.Net.WebRequest]::Create("https://test/v1/healtcheck")
 $request.Proxy=[System.Net.WebProxy]::new() #blank proxy
 $response=$request.GetResponse()
 
```

No comments:

Post a Comment