我正在尝试使用代理服务器连接到https://www.aliexpress.com/,并且我意识到,如果我通过该代理服务器连接到该网页,就可以说我正在使用俄语代理服务器,它将文档更改为俄语,货币将为俄语,页面上的大部分内容将为俄语,因此我在这里有什么选择? 我可以设置任何标题或cookie来更改货币和内容吗? 我知道网页上(右上角)有一个功能,可以将货币等更改为USD。
private static void Main(string[] args)
{
var proxyObject = new WebProxy("94.230.114.89:8585", true);
var request = (HttpWebRequest) WebRequest.Create(
"https://www.aliexpress.com/item/Summer-Women-Shawl-Jacket-Woman-Thin-Section-net-yarn-in-long-paragraph-cardigan-Tops-wild-Sun/32893204463.html?spm=a2g01.11147086.layer-iabdzn.3.37286140RwQen9&gps-id=5275233&scm=1007.16233.92930.0&scm_id=1007.16233.92930.0&scm-url=1007.16233.92930.0&pvid=a9dbf8fb-6fd5-41e9-8b89-1d161da2fa58");
request.Proxy = proxyObject;
request.Method = "GET";
request.Headers.Add("Accept-Language", "en-US");
var response = request.GetResponse();
var data = response.GetResponseStream();
var html = string.Empty;
using (var sr = new StreamReader(data))
{
html = sr.ReadToEnd();
}
Debug.Print(html);
Console.ReadLine();
}