2017-04-07 38 views

回答

1

爲什麼你要從Javascript取回Cookies? ... 讓所有頭文件(包括餅乾)最好的意見是使用Awesomium也與C#編寫的代理...

百科:ProxyConfig http://docs.awesomium.net/html/P_Awesomium_Core_WebPreferences_ProxyConfig.htm

Github的C#代理: https://github.com/justcoding121/Titanium-Web-Proxy

鈦具有2個有用的事件:

proxyServer.BeforeRequest += OnRequest; 
proxyServer.BeforeResponse += OnResponse; 

它給你的SystemEventArgs一個簡單的實現是:

public async Task OnRequest(object sender, SessionEventArgs e) 
public async Task OnResponse(object sender, SessionEventArgs e) 

實施後你有possibilty中把握所有頁眉和刪除或modifiy吧:)

希望它可以幫助...