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

postString = "source=MyApp&status=" + Uri.EscapeUriString(message) +
"&in_reply_to_status_id=" + Uri.EscapeUriString(inreply);

            HttpWebRequest webRequest = (HttpWebRequest)
            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;
                using (Stream outStream = webRequest.GetRequestStream
                    outStream.Write(postData, 0, postData.Length);
            catch (Exception ex)
                  throw new customException("Connection
unsuccessful.", ex);
                using (HttpWebResponse response = (HttpWebResponse)
                    using (StreamReader reader = new StreamReader
            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

Is there anything else?

Reply via email to