Using Proxy Automatic Configuration from IE Settings in .Net

后端 未结 2 1427
感动是毒
感动是毒 2020-12-10 13:16

I\'m having trouble getting Proxy Automatic Configuration (PAC) in IE options to work as expected using .Net WebRequest.

According to this article:
Proxy Detecti

相关标签:
2条回答
  • 2020-12-10 13:47

    Found the solution!

    It is really important that the mime type of the PAC file would be: [Content-type: application/x-ns-proxy-autoconfig]

    Other mime types might not work.

    Make sure using fiddler2 (with cache disabled) that the mime type is appropriate. Some configurations might show Content-Type: text/plain which is bad.

    0 讨论(0)
  • 2020-12-10 14:07

    Make sure you have checked Internet (Client & Server) and Private Networks (Client & Server) capabilities in Package.appxmanifest.

    [Source]

    0 讨论(0)
提交回复
热议问题