WebClient is very slow

后端 未结 3 809
[愿得一人]
[愿得一人] 2020-12-17 18:36

I have problem with Webclient.

It is very slow. It takes about 3-5 seconds to downloadString from one website. I don\'t have any network problems.

This is my

3条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-17 19:21

    Maybe it will help somebody. Some web services support compression (gzip or other). So you can add Accept-Encoding header for your requests and then enable automatic decompression for web client instance. Chrome works in that way.

提交回复
热议问题