Not able to connect to website URLs from Asp.Net WebApi Action Methods

后端 未结 1 1044
小鲜肉
小鲜肉 2021-01-15 13:15

I am trying to connect to URL using WebClient inside Asp.Net Web Api project. My intention was to get the content and create a web site thumbnail.

Sample Code:

1条回答
  •  半阙折子戏
    2021-01-15 13:46

    I found the answer here in the end: Web Request through Proxy using RestSharp

    Adding:

    
        
    
    

    To my web config fixed it for me.

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