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?