title: C# HTTP request to PHP file to JSON
body: <p>I would like to write a class in c# which should send an HTTP request (post) to a PHP file which is on my server in order to retrieve a json object. </p>
  
  <p>This is the code I've got: </p>
  
  <pre><code>   public void SendRequest(){
      HttpWebRequest request = (HttpWebRequest)
          WebRequest.Create("url");
  
      // execute the request
      HttpWebResponse response = (HttpWebResponse)
          request.GetResponse();
      }
  </code></pre>
  
  <p>Is that what I need? What do you think I should change or improve? 
  Thank you for your help.</p>