C# 发送post数据并获取状态代码
我需要知道如何用C#将其作为post数据发送 下面是python,我需要将其转换为C代码,并将其作为webrequests发送C# 发送post数据并获取状态代码,c#,C#,我需要知道如何用C#将其作为post数据发送 下面是python,我需要将其转换为C代码,并将其作为webrequests发送 post = {'customer_fid': self.customer_fid, 'salt': self.salt, 'token': token, 'customer_facebooktoken': self.customer_facebooktoken} request = self.session.post(self.baseurl + self.logi
post = {'customer_fid': self.customer_fid, 'salt': self.salt, 'token': token, 'customer_facebooktoken': self.customer_facebooktoken}
request = self.session.post(self.baseurl + self.loginurl, data=post)
这应该通过webrequests或httpclient完成。但我不知道怎么做。请帮帮我
提前谢谢。
希望这对你有帮助。你不知道。。太好了:)但是你试过什么?这个网站不像“我不知道,你给我代码”那样工作。显示你的努力,我们提供帮助。HttpClient是一个很好的起点。不,我还没试过。我看不出语法的逻辑。这就是我在这里问的原因。