Search code examples
c#.nethttphttpwebrequest

How can I add additional parameters to multipart POST request?


I use HttpWebRequest to upload file on the server. But I also want to send some parameters (I mean name-value pairs)


Solution

  • You can add them to the query string. They'll be available on the server, regardless of whether the HTTP method is POST or GET.