I need to use HTTP Post to send a a string array like so…
Dim wc As New Net.WebClient
Dim NC As New Specialized.NameValueCollection
NC.Add("api_user", "some user")
NC.Add("api_key", "some key")
NC.Add("from", "me@world.com")
NC.Add("subject", "testing...")
NC.Add("body", "testing...again")
NC.Add("to", string_array)
i have tried several methods, but i keep getting – The remote server returned an error: (400) Bad Request.
I’m posting to SendGrid via their WebAPI
Just found a solution.
use an index and the same keyName
Help came from here : POST'ing arrays in WebClient (C#/.net)