Open kows opened 7 years ago
I have a similar issue where I want to give the clients during login acheck box Proxy true
, if they're behind a proxy
I agree with kows, we really need to be able to define the proxy from config rather than just using GetSystemWebProxy() which can really cause deployment issues if you don't have the ability to set that. Everything should be configurable with the app and its a reasonably simple feature to add
We urgently need this, too. Any chance to ever implement setting an IWebProxy
from outside?
With some extended testing on our different environments I came to the following conclusion regarding the usage of a proxy and this library. It seems to me, by using WebRequest.GetSystemWebProxy() in VerifyRecaptchaResponse of RecaptchaVerificationHelper, the proxy that is used is always the proxy defined in settings of IE for current user (in our case NetworkService, defined on application pool). Overriding this proxy with web.config fails because the result of method above always overrides the default proxy. Currently I'm keeping my proxy on the NetworkService account but it would be more usefull if this is adaptable by config.