我有一个使用Flurl客户端的简单的POST请求,想知道如何使用代理来进行这个请求,包括使用IP、端口、用户名和密码等信息。
我该如何实现呢?
string result = await atc.Request(url)
.WithHeader("Accept", "application/json")
.WithHeader("Content-Type", "application/x-www-form-urlencoded")
.WithHeader("Host", "www.website.com")
.WithHeader("Origin", "http://www.website.com")
.PostUrlEncodedAsync(new { st = colorID, s = sizeID, qty = 1 })
.ReceiveString();