0

Possible Duplicate:
Uploading Attachments via XML API

I add case like this:

String strPost = "cmd=new&token=" + myToken + "&sTitle=example" + "&ixProject=" + projectId + "&File1=C:\Users\John\\Desktop\\ex.txt";

System.Net.HttpWebRequest objRequest = (System.Net.HttpWebRequest)System.Net.WebRequest.Create(Url);
objRequest.Method = "POST";
objRequest.ContentLength = strPost.Length;
objRequest.ContentType = "multipart/form-data";

And it only adds case without the attachment. How can I make to add an attachment too?

flag

closed as exact duplicate by db♦♦ Feb 10 2012 at 15:21

Browse other questions tagged or ask your own question.