How do I authenticate a WebClient request?

后端 未结 4 793
甜味超标
甜味超标 2020-11-28 08:28

I am making a call to a page on my site using webclient. I\'m trying to get the result of the webpage put into a pdf so I am trying to get a string representation of the ren

4条回答
  •  佛祖请我去吃肉
    2020-11-28 09:00

    What kind of authentication are you using? If it's Forms authentication, then at best, you'll have to find the .ASPXAUTH cookie and pass it in the WebClient request.

    At worst, it won't work.

提交回复
热议问题