如何将此cURL命令转换为RestSharp:
PirateShipList1.Union(PirateShipList2).GroupBy(x => new { x.Date, x.Name }, (key, value) => value.OrderByDescending(x => x.Number).First());
我试过这个,但它没有用(得到内部服务器错误):
curl -k -d . -o SessionRequest.txt
"https://myserver.com/MyWebAPI/user?
companysn=12345&
login=MyLoginName&
password=MyPassword&
ApiKey=MyApiKey"
似乎我必须包含“-k”和“-d”。到RestSharp但我该怎么做?
由于