I hate to bump this... but I need help... anybody....
On Aug 6, 9:39 am, digi <ishmeetah...@gmail.com> wrote: > hello there, > > I have been trying to fix this for so long but It is not working. > I am developing a wndows mobile application for twitter in C# am > trying to reply to a status id. The message gets posted but it is not > posted as a reply but just an update message. I dont know what I am > missing... Please help. I am pasting my code too > //Code > > postString = "source=MyApp&status=" + Uri.EscapeUriString(message) + > "&in_reply_to_status_id=" + Uri.EscapeUriString(inreply); > > HttpWebRequest webRequest = (HttpWebRequest) > WebRequest.Create(sendTweetUrl); > NetworkCredential credentials = new NetworkCredential > (Username, Password); > webRequest.Credentials = credentials; > > ASCIIEncoding encoding = new ASCIIEncoding(); > byte[] postData = encoding.GetBytes(postString); > > webRequest.Method = "POST"; > webRequest.Timeout = 20000; > webRequest.ContentLength = postData.Length; > webRequest.AllowWriteStreamBuffering = true; > webRequest.ProtocolVersion = HttpVersion.Version11; > webRequest.ProtocolVersion = HttpVersion.Version10; > try > { > using (Stream outStream = webRequest.GetRequestStream > ()) > { > outStream.Write(postData, 0, postData.Length); > outStream.Flush(); > } > } > catch (Exception ex) > { > throw new customException("Connection > unsuccessful.", ex); > } > try > { > using (HttpWebResponse response = (HttpWebResponse) > webRequest.GetResponse()) > { > using (StreamReader reader = new StreamReader > (response.GetResponseStream())) > { > reader.ReadToEnd(); > } > } > } > catch (WebException ex) > {throw new customException("Update unsuccessful.", ex);} > > Let me know if there is anything I am missing. > in btw I am also including the @<username> in the reply to the status > id. > > Is there anything else?