Looking at your client code snippet first thing you need to do is to change very first line to read as follows
The next thing is to change the line which creates
. On this line you are passing
. Assuming that
is a string all you need to do is change that line to
handler.GetPostStream(boundary, "key=" + jsonRequestS);
Remember POST data is sent in "key=value" format. Since you are transferring any file(s), ContentTypeas "multipart/form-data; boundary=-------------------------334234ds" is unnecessary. ContentType as "application/x-www-form-urlencoded" should be sufficient.