var Data = new MultipartContent() { {new StringContent("id"), "21"}, {new StringContent("name"), "test"}, {new StringContent("brand"),""}, }; 

How to send an empty parameter? Studio throws an exception.

  • Where to send? What is the exception? Expand the question. But first try sending a space instead of an empty string. And the recipient is already string.IsNullOrEmpty () check - Erkin Mukhamedkulov

1 answer 1

Most likely, you didn’t look at the example of using the specified library carefully enough. In the code you are trying to send a value without indicating which parameter it refers to.

{new StringContent ("brand"), ""},

need so

{new StringContent (""), "brand"},