You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-18Lines changed: 3 additions & 18 deletions
Original file line number
Diff line number
Diff line change
@@ -48,23 +48,6 @@ Then create a proxy server instance:
48
48
The "port" is the port of the newly-created proxy instance, so configure your HTTP client or web browser to use a proxy on the returned port.
49
49
For more information on the features available in the REST API, see [the REST API documentation](#rest-api).
50
50
51
-
## Changes since the 2.1-beta series
52
-
53
-
**The `browsermob-core-littleproxy` module is now `browsermob-core`**
54
-
55
-
After six beta releases, the LittleProxy implementation now supports more features and is more stable than the legacy implementation. To reflect that level of maturity and long-term support, the `browsermob-core` module now uses LittleProxy by default.
56
-
57
-
**Note about Legacy support**: In the 2.1-betas, if you were using the `ProxyServer` or `LegacyProxyServer` classes, use the `browsermob-core-legacy` module in 2.1.0 and higher.
58
-
59
-
*LittleProxy support for `LegacyProxyServer` has moved to `BrowserMobProxyServerLegacyAdapter`*. Using the LittleProxy implementation with the `LegacyProxyServer` interface is still fully supported as a means to help you transition from 2.0.0. Unlike the 2.1-beta series, the `BrowserMobProxyServer` class
60
-
no longer implements `LegacyProxyServer`; however, the `BrowserMobProxyServerLegacyAdapter` can be used to integrate legacy code with the new LittleProxy interface. You must still use the `browsermob-core-legacy` module when using the LegacyAdapter.
proxy.setPort(8081); // method only supported by the legacy interface
65
-
proxy.start();
66
-
```
67
-
68
51
## Changes since 2.0.0
69
52
70
53
The new [BrowserMobProxyServer class](browsermob-core/src/main/java/net/lightbody/bmp/BrowserMobProxyServer.java) has replaced the legacy ProxyServer implementation. The legacy implementation is no longer actively supported; all new code should use `BrowserMobProxyServer`. We highly recommend that existing code migrate to the new implementation.
@@ -118,7 +101,7 @@ The proxy is programmatically controlled via a REST interface or by being embedd
118
101
119
102
### REST API
120
103
121
-
**New in 2.1:**The REST API now supports LittleProxy. As of 2.1.0-beta-3, LittleProxy is the default implementation. (You may specify `--use-littleproxy false` to disable LittleProxy in favor of the legacy Jetty 5-based implementation.)
104
+
**New in 2.1:**LittleProxy is the default implementation of the REST API. You may specify `--use-littleproxy false` to disable LittleProxy in favor of the legacy Jetty 5-based implementation.
122
105
123
106
To get started, first start the proxy by running `browsermob-proxy` or `browsermob-proxy.bat` in the bin directory:
124
107
@@ -239,6 +222,8 @@ Consult the Javadocs on the `net.lightbody.bmp.BrowserMobProxy` class for the fu
239
222
240
223
### Using With Selenium
241
224
225
+
**Selenium 3 users**: Due to a [geckodriver issue](https://github.com/mozilla/geckodriver/issues/97), Firefox 51 and lower do not properly support proxies with WebDriver's DesiredCapabilities. See [this answer](http://stackoverflow.com/a/41373808/4256475) for a suitable work-around.
226
+
242
227
BrowserMob Proxy makes it easy to use a proxy in Selenium tests:
Copy file name to clipboardExpand all lines: mitm/README.md
+2-4Lines changed: 2 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -7,16 +7,14 @@ The MITM module uses "sensible" default settings that should work for the vast m
7
7
### LittleProxy (without BrowserMob Proxy)
8
8
**Note:** The MITM module requires Java 7
9
9
10
-
**Compatibility note:** The current version of the MITM module is compatible with LittleProxy 1.1.0. If you are using LittleProxy 1.1.0-beta2 or earlier, use MITM 2.1.0-beta-5.
11
-
12
10
To use MITM with standalone LittleProxy, add a dependency to the mitm module in your pom:
13
11
14
12
```xml
15
13
<!-- existing LittleProxy dependency -->
16
14
<dependency>
17
15
<groupId>org.littleshoot</groupId>
18
16
<artifactId>littleproxy</artifactId>
19
-
<version>1.1.0</version>
17
+
<version>1.1.1</version>
20
18
</dependency>
21
19
22
20
<-- new dependency on the MITM module -->
@@ -102,7 +100,7 @@ Whether you are using the MITM module with LittleProxy or BrowserMob Proxy, you
102
100
You can also load the root certificate and private key from separate PEM-encoded files using the `PemFileCertificateSource` class, or create an implementation of `CertificateAndKeySource` that loads the certificate and private key from another source.
103
101
104
102
## TrustedRootCertificates
105
-
As of 2.1.0-beta-6, the MITM module explicitly trusts the CertificateAuthorities in the JVM's default trust store, as well as a default list of trusted CAs derived from NSS/Firefox's list of trusted CAs (courtesy of the cURL team: https://curl.haxx.se/ca/cacert.pem).
103
+
TheMITM module trusts the CertificateAuthorities in the JVM's default trust store, as well as a default list of trusted CAs derived from NSS/Firefox's list of trusted CAs (courtesy of the cURL team: https://curl.haxx.se/ca/cacert.pem).
106
104
107
105
To add your own CA to the list of root CAs trusted by the MITM module, use the `add()` methods in the `net.lightbody.bmp.mitm.TrustSource` class. Alternatively, it is possible to disable upstream server validation, but this is only recommended when testing. Examples:
0 commit comments