How to make an HTTP POST web request

后端 未结 14 3222
有刺的猬
有刺的猬 2020-11-21 04:31

Canonical
How can I make an HTTP request and send some data using the POST method?

14条回答
  •  青春惊慌失措
    2020-11-21 05:00

    Simple (one-liner, no error checking, no wait for response) solution I've found so far:

    (new WebClient()).UploadStringAsync(new Uri(Address), dataString);‏
    

    Use with caution!

提交回复
热议问题