[Rt-devel] stuck on comment creation
Ashley Etherington
migetismad at hotmail.com
Wed Jun 30 08:45:36 EDT 2010
Heya everyone. Im currently writing my own C# lib for RT and so far results have been good. The problem is ive hit a snag. I can create tickets perfectly with this code.
byte[] data = UTF8Encoding.UTF8.GetBytes("content=Queue: Backstage\n"+ "Subject: "+TicIn.Subject+"\n"+ "cf-InWarranty: "+TicIn.InWarrenty+"\n"+ "cf-ProductType: "+TicIn.ProductSpec+"\n"+ "cf-ProductDescription: "+TicIn.ProductDesc+"\n"+ "cf-SerialNumber: "+TicIn.SerialNumber+"\n"+ "cf-Company: "+TicIn.Company+"\n"+ "cf-ProductBand: "+TicIn.ProductMake+"\n"+ "Text: "+TicIn.ExtraData); HttpWebRequest Req = WebRequest.Create("http://petey.globemicro.com/rt/REST/1.0/ticket/new?user=jubjub&pass=xxxx") as HttpWebRequest; Req.ContentLength = data.Length; Req.Method = "POST"; Req.ContentType = "application/x-www-form-urlencoded"; Req.Credentials = new NetworkCredential("jubjub","xxxx"); Stream DataStream = Req.GetRequestStream(); DataStream.Write(data,0,data.Length); DataStream.Close(); HttpWebResponse Resp = Req.GetResponse() as HttpWebResponse;
But If I want to create a comment on its own no matter what ive tryed its not having it at all. Any help would be greatly apreciated.
_________________________________________________________________
http://clk.atdmt.com/UKM/go/195013117/direct/01/
We want to hear all your funny, exciting and crazy Hotmail stories. Tell us now
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-devel/attachments/20100630/8d23d838/attachment.html>
More information about the rt-devel
mailing list