Will I be able to tell a Hosted Internet Explorer

2019-09-07 13:20发布

Following scenario:

  • Having a hosted IE web browser control and an in-app web server (like this one).
  • The web server runs at (e.g.) http://127.0.0.1:14284 and the web browser calls this URL.

Now we have a customer which has a proxy server configured in IE options, and also checked "bypass proxy on local addresses".

Unfortunately, the hosted IE web browser control still used the proxy settings, even for the local URL http://127.0.0.1:14284.

My question is:

Am I somehow able to tell my hosted web browser to always directly call my hosted web server, without going through a proxy?

(I found this thread but still am unsure how to apply this to my question)

1条回答
贪生不怕死
2楼-- · 2019-09-07 13:35

I think you have to do some interop, as the docs say you can disable the proxy with the InternetSetOption function. There are a lot of flags you can pass to this function you need INTERNET_OPTION_PROXY or INTERNET_OPTION_PER_CONNECTION_OPTION, theres also a kb-article which describes how to set the proxy settings.

I hope I helped you a bit :)

查看更多
登录 后发表回答