title: Socket Programing By C# in ASP.net
body: <p>Is this Possible that write a Socket by C# in ASP.net ? 
  for Example Can i write a Code Like this Perl Code in C# and asp.net ? : </p>
  
  <pre><code>&gt; use HTTP::Request::Common qw(POST);
  &gt; use LWP::UserAgent; $ua = new
  &gt; LWP::UserAgent(agent =&gt; 'Mozilla/5.0(Windows; U; Windows NT 5.1; en-US; rv:1.8.0.5)Gecko/20060719 Firefox/1.5.0.5'); 
  &gt; $ua -&gt; timeout(20);
  &gt; my $req = POST 'http://Example.com/',
  &gt; [ login_username =&gt; 'mehdi' , login22 =&gt; '654321' , go =&gt; 'submit']; 
  &gt; my $content = $ua-&gt;request($req);
  </code></pre>
  
  <p>please Give me an example or Convert the above code to C# and asp.net .
  Thanks in Advance . </p>