<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
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.<div><br></div><div><div>byte[] data = UTF8Encoding.UTF8.GetBytes("content=Queue: Backstage\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Subject: "+TicIn.Subject+"\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "cf-InWarranty: "+TicIn.InWarrenty+"\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "cf-ProductType: "+TicIn.ProductSpec+"\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "cf-ProductDescription: "+TicIn.ProductDesc+"\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "cf-SerialNumber: "+TicIn.SerialNumber+"\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "cf-Company: "+TicIn.Company+"\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "cf-ProductBand: "+TicIn.ProductMake+"\n"+</div><div><span class="Apple-tab-span" style="white-space:pre">                </span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; "Text: "+TicIn.ExtraData);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>HttpWebRequest Req = WebRequest.Create("http://petey.globemicro.com/rt/REST/1.0/ticket/new?user=jubjub&amp;pass=xxxx") as HttpWebRequest;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Req.ContentLength = data.Length;</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Req.Method = "POST";</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Req.ContentType = "application/x-www-form-urlencoded";</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Req.Credentials = new NetworkCredential("jubjub","xxxx");</div><div><span class="Apple-tab-span" style="white-space:pre">                </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>Stream DataStream = Req.GetRequestStream();</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>DataStream.Write(data,0,data.Length);</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>DataStream.Close();</div><div><span class="Apple-tab-span" style="white-space:pre">                        </span></div><div><span class="Apple-tab-span" style="white-space:pre">                </span>HttpWebResponse Resp = Req.GetResponse() as HttpWebResponse;</div></div><div><br></div><div>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.</div>                                               <br /><hr />Get a new e-mail account with Hotmail - Free. <a href='http://clk.atdmt.com/UKM/go/197222280/direct/01/' target='_new'>Sign-up now.</a></body>
</html>