I call CURL in the C# to retrieve data.
The following is my 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();
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?
string x = p.OutputDataReceived();
or
p.OutputDataReceived(string x);
Thank you very much.