【发布时间】:2011-10-29 21:00:07
【问题描述】:
我需要像这样使用 HTTP Post 发送一个字符串数组...
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)
我已经尝试了几种方法,但我一直收到 - 远程服务器返回错误:(400)错误请求。
我正在通过他们的 WebAPI 向 SendGrid 发帖
【问题讨论】:
标签: .net arrays http-post webclient sendgrid