Try using system.net.httpClient()
instead. system.net.httpPost()
doesn’t know how to encode that dictionary you provide for the body into x-www-form-urlencoded
. Or do that encoding to the body yourself and pass the resulting string in as the body.
edit: actually not sure if system.net.httpClient()
will do that encoding for you either.