I\'m trying to POST some data as if I was using FORM on HTML site (ContentType = multipart/form-data). The target is amazon\'s s3. I\'m using HttpWebRequest / HttpWebResponse an
solved! the boundary was wrong - it is needed to add 2 dashes more for post data than the value in the header has. what was needed to do in above code was:
string boundary = "---------------------------317205771417341028";
request.ContentType = "multipart/form-data; boundary=" + boundary;
[...]
using (Stream s = request.GetRequestStream())
{
boundary = "--" + boundary "\n";
[...] so easy... and yet so annoying...