title: How to retrieve data from CURL.exe?
body: <p>I call CURL in the C# to retrieve data.</p>
  
  <p>The following is my code:</p>
  
  <pre><code>Process p = new Process();
  p.StartInfo.WorkingDirectory = @"D:\";
  p.StartInfo.FileName = @"D:\curl.exe";
  p.StartInfo.CreateNoWindow = true;
  p.StartInfo.Arguments = "-u agentemail:password -k https://fantasia.zendesk.com/api/v1/tickets/1.xml";
  p.Start();
  p.WaitForExit();
  </code></pre>
  
  <p>But the problem is after CURL get the URL data, how do I retrieve the data from the CURL?
  Is there a command to pull the data into a string like the following?</p>
  
  <pre><code>string x = p.OutputDataReceived();
  </code></pre>
  
  <p>or </p>
  
  <pre><code>p.OutputDataReceived(string x);
  </code></pre>
  
  <p>Thank you very much.</p>