Is WebRequest The Right C# Tool For Interacting With Websites?

前端 未结 7 1644
醉梦人生
醉梦人生 2020-12-23 13:17

I\'m writing a small tool in C# which will need to send and receive data to/from a website using POST and json formatting. I\'ve never done anything like this before in C#

7条回答
  •  暖寄归人
    2020-12-23 13:37

    The currently highest rated answer is helpful, but it doesn't send or receive JSON.

    Here is an example that uses JSON for both sending and receiving:

    How to post json object in web service

    And here is the StackOverflow question that helped me most to solve this problem:

    Problems sending and receiving JSON between ASP.net web service and ASP.Net web client

    And here is another related question:

    json call with C#

提交回复
热议问题