我正在寻找一个自定义控件WebBrowser,支持WebBrowser表单中的个人不同的代理.
常规WebBrowser控制正在与IE一起工作,对于一个WebBrowser控件,我可以设置代理,但其他的那个呢?
有没有办法改变常规WebBrowser控制来做到这一点,还是有办法实现我的目的?
提前致谢
首先,我将Visual Studio 2012更改.Net Framework 4.5为.Net Framework 4 Client Profile我的项目.
我也使用https代理与第三方应用程序 - > Proxifier
之后,当我想启动应用程序时,我收到此错误:

错误:
The Microsoft Visual Studio Remote Debugging Monitor (MSVSMON.EXE) does not apear to be running on the remote computer ...
这个错误意味着什么,我该如何删除它?
注意:在visual studio 2010中我没有这样的错误!
proxy remote-debugging windows-applications visual-studio-2012
我使用Selenium 2.35.0并配置代理设置,如:
DesiredCapabilities cap = new DesiredCapabilities();
org.openqa.selenium.Proxy proxy = new org.openqa.selenium.Proxy();
proxy.setHttpProxy(proxyStr).setFtpProxy(proxyStr).setSslProxy(proxyStr);
cap.setCapability(CapabilityType.PROXY, proxy);
driver = new FirefoxDriver(firefox, profile, cap);
Run Code Online (Sandbox Code Playgroud)
当我需要更改代理设置时,我强制重启webdriver并编写其他"proxyStr".
如何在没有webdriver重启的情况下实现这种变化?
我试图通过代理服务器模拟curl.该流星文档没有为HTTP提及任何代理设置.*的方法.
是否有特定于流星的解决方案?现在我正在使用ProxyChains.
理想情况下,我使用SOCKS代理,只有HTTP.*调用会通过它,但我对来自应用程序的所有调用通过任何类型的代理开放.
当我的应用程序从服务器(通过https)请求特定URL时,它会获得301 Moved Permanently重定向.但是,Location标头格式错误.我看到这样的事情:
> GET https://myserver/url HTTP/1.1
< 301 Moved Permanently
< Location: https://redirectedserverhttp://myserver/url
Run Code Online (Sandbox Code Playgroud)
如果我在没有主机的情况下发送请求,我会得到一个格式正确的URL:
> GET /url HTTP/1.1
< 301 Moved Permanently
< Location: https://redirectedserver/url
Run Code Online (Sandbox Code Playgroud)
我正在通过代理服务器并根据RFC 2068第5.1.2节," 当向代理发出请求时,必须使用absoluteURI表单 "所以看起来我正在以正确的方式执行它但代理正在响应不正确.如果我通过浏览器尝试这个,curl或wget它工作正常.我查看了wget代码,逻辑看起来像:
if( proxy && !https ) {
use absoluteURI
} else {
use relativeURI
}
Run Code Online (Sandbox Code Playgroud)
Wget甚至在其源代码中有评论:
/* When using SSL over proxy, CONNECT establishes a direct
connection to the HTTPS server. Therefore use the same
argument as when talking to the server directly. */
Run Code Online (Sandbox Code Playgroud)
这是在某处定义的实际标准吗?如果应该使用绝对URI表单,为什么其他工具不使用它,为什么它失败了?
我有一个奇怪的问题,它只影响我正在研究的一个本地应用程序 - 使用这种方法的其他应用程序似乎工作正常(Ghost).这是来自我的Nginx服务器配置:
location @node_proxy {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Host $host;
proxy_redirect off;
proxy_pass http://127.0.0.1:5000;
}
location / {
try_files @node_proxy =404;
}
Run Code Online (Sandbox Code Playgroud)
正如我所说,我有Ghost运行与此相同,它表现良好.但是对于这个配置,它会导致每个请求都是404 - 它似乎永远不会命中代理.我检查了日志,这证实了我的怀疑,访问或错误日志中没有条目.
我在这个实例中代理的应用程序只是一个简单的基于Express的节点应用程序,所以没有什么复杂的.访问http://127.0.0.1:5000我看到了预期的结果.
如果我将配置更改为:
location / {
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-NginX-Proxy true;
proxy_set_header Host $host;
proxy_redirect off;
proxy_pass http://127.0.0.1:5000;
}
Run Code Online (Sandbox Code Playgroud)
它按预期工作,但我想使用命名位置,以避免重复代理声明.
我错过了一些明显的事吗?
更新到Xcode 5后,iOS模拟器无法连接 - 不在Safari或地图中.它会抛出"缓存访问被拒绝"消息.无法找到解决问题的在线任何内容.我很难过.有任何想法吗?
我们的客户正在尝试使用Firefox和SSL连接到我们的服务台系统.我不知道他是否使用代理,但这可能是肯定的.
当尝试使用Firefox连接到我们的webplattform时,他会检索此错误代码
ssl_error_illegal_parameter_alert
Run Code Online (Sandbox Code Playgroud)
由于他是唯一的客户,报告此问题,我需要知道,如果我能确定告诉他,他的网络/代理/等发生了错误.
我无法找到关于此错误的明确定义.你可以验证一下,在这种情况下,只有错误响应才会失败吗?
我正在使用BrowserMob(http://bmp.lightbody.net/)设置ChromeDriver来拦截HTTP响应.
ProxyServer proxyServer = null;
proxyServer = new ProxyServer(9101);
proxyServer.start();
proxyServer.setCaptureContent(true);
proxyServer.setCaptureHeaders(true);
Proxy proxy = proxyServer.seleniumProxy();
proxy.setHttpProxy("localhost:9101");
proxyServer.addResponseInterceptor(new ResponseInterceptor() {
@Override
public void process(BrowserMobHttpResponse response, Har har) {
if (response.getRawResponse().getStatusLine().getStatusCode() == 500) {
// do something
}
}
});
DesiredCapabilities capabilities = DesiredCapabilities.chrome();
capabilities.setCapability(CapabilityType.PROXY, proxy);
System.setProperty("webdriver.chrome.driver", "seleniumdrivers/chromedriver.exe");
ChromeOptions options = new ChromeOptions();
options.addArguments("--lang=nl");
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
this.driver = new ChromeDriver(capabilities);
Run Code Online (Sandbox Code Playgroud)
运行Selenium测试时,每个页面加载速度都非常慢.没有代理,它工作正常.有人知道原因/解决方案吗?
在日志控制台中,将显示以下消息:jan 10, 2014 12:58:06 PM net.sf.uadetector.datastore.AbstractUpdateOperation isUpdateAvailable
INFO: Can not check for an updated version. Are you …
我正在尝试通过需要使用Apache HttpClient 4.3.1进行抢先身份验证的代理发送HTTPS请求。
当我在第一个请求中未直接对自己进行身份验证时,代理会阻止与IP的连接几分钟。
我对正常的HTTP请求没有任何问题,只是将“ Proxy-Authorization”标头手动添加到了请求中。
但是,当尝试加载HTTPS页面时,HttpClient似乎使用了HTTP隧道,因此第一个请求是“ CONNECT”命令,然后发送我的实际请求。使用request.setHeader(...)方法不会影响CONNECT请求的标头,从而导致出现“需要HTTP / 1.0 407代理身份验证”响应并关闭我的连接。之后,HttpClient再次连接,这次使用我的凭据添加“ Proxy-Authorization”标头字段。
连接成功(建立了HTTP / 1.0 200连接),并且正在执行我的实际GET请求。但是,之后我再次运行程序时,将得到IOException:
信息:处理请求时捕获了I / O异常(java.net.SocketException):连接重置
在Wireshark中,我可以看到代理不再响应我的“ CONNECT”请求(不包含凭据)。因此,我尝试了几种方法来使HttpClient在第一个CONNECT请求中发送凭据:我修改了此示例以使用代理,并为代理创建了AuthCache,但是它不起作用。我还尝试将HttpRequestInterceptor添加到我的客户端:
static class PreemptiveAuth implements HttpRequestInterceptor {
@Override
public void process(final HttpRequest request, final HttpContext context) throws HttpException, IOException {
request.setHeader("Proxy-Authorization", "Basic <base64credentials>");
}
}
Run Code Online (Sandbox Code Playgroud)
但这也不会影响“ CONNECT”请求。这是我其余的代码:
public class ClientProxyAuthentication {
public static void main(String[] args) throws IOException, InterruptedException {
HttpHost targetHost = new HttpHost("www.google.com", 443, "https");
HttpHost proxy = new HttpHost("<proxy-ip>", 21265, "http");
CredentialsProvider credsProvider = new …Run Code Online (Sandbox Code Playgroud) authentication proxy httpclient apache-commons-httpclient apache-httpclient-4.x