Help with ASP.NET HttpWebRequest
<p>I began to learn ASP.NET and C#, to get more familiar with techniques I want to make plugin for open source <a href="http://ifdefined.com/bugtrackernet.html" rel="nofollow">BugTracker.Net</a> application. Where I am stacked is that for adding new issue application need to get HttpWebRequest on insert_bug.aspx</p>

<p>I did make basic thing working on code like this:</p>

<pre><code>string Url = "http://localhost:8090/insert_bug.aspx";
        string post_data =
                     "&amp;username=admin"
                    + "&amp;password=admin"
                    + "&amp;short_desc=Description"
                    + "&amp;comment=Comment"
                    + "&amp;projectid=1"

        byte[] bytes = Encoding.UTF8.GetBytes(post_data);
        HttpWebResponse res = null;
        try
  {
   HttpWebRequest req = (HttpWebRequest) System.Net.WebRequest.Create(Url);
   req.Credentials = CredentialCache.DefaultCredentials;
   req.PreAuthenticate = 
   req.Method = "POST";
   req.ContentType= "application/x-www-form-urlencoded";
   req.ContentLength=bytes.Length;
   Stream request_stream = req.GetRequestStream();
   request_stream.Write(bytes,0,bytes.Length);
   request_stream.Close();
   res = (HttpWebResponse) req.GetResponse();
  }
  catch (Exception e)
  {
   Console.WriteLine("HttpWebRequest error url=" + Url);
   Console.WriteLine(e);
  }
</code></pre>

<p>I want to insert also CATEGORY into my issues and reading code on insert_bug.aspx i fund part for defining category for opening issue </p>

<pre><code>if (Request["$CATEGORY$"] != null &amp;&amp; Request["$CATEGORY$"] != "") { categoryid = Convert.ToInt32(Request["$CATEGORY$"]); }
</code></pre>

<p>Question:
What and How I can add "$CATEGORY$" to my request so the issues I added have defined category.</p>
