cURL to C#

Convert cURL commands to C# code.