2017-04-07 90 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吧:)

希望它可以帮助...