Skip to content

Commit 7f61468

Browse files
authored
Merge pull request #32 from browserstack/update-readme
Added force proxy and local proxy options in readme
2 parents 44c2039 + 8a48ff7 commit 7f61468

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,11 @@ To route all traffic via local(your) machine -
7070
```java
7171
bsLocalArgs.put("forcelocal", "true");
7272
```
73+
#### Force Proxy
74+
To route all traffic via the proxy specified.
75+
```java
76+
bsLocalArgs.put("forceproxy", "true");
77+
```
7378

7479
#### Proxy
7580
To use a proxy for local testing -
@@ -85,6 +90,20 @@ bsLocalArgs.put("proxyPort", "8000");
8590
bsLocalArgs.put("proxyUser", "user");
8691
bsLocalArgs.put("proxyPass", "password");
8792
```
93+
#### Local Proxy
94+
To use local proxy in local testing -
95+
96+
* localProxyHost: Hostname/IP of proxy, remaining proxy options are ignored if this option is absent
97+
* localProxyPort: Port for the proxy, defaults to 8081 when -localProxyHost is used
98+
* localProxyUser: Username for connecting to proxy (Basic Auth Only)
99+
* localProxyPass: Password for USERNAME, will be ignored if USERNAME is empty or not specified
100+
101+
```java
102+
bsLocalArgs.put("localProxyHost", "127.0.0.1");
103+
bsLocalArgs.put("localProxyPort", "8000");
104+
bsLocalArgs.put("-localProxyUser", "user");
105+
bsLocalArgs.put("-localProxyPass", "password");
106+
```
88107

89108
#### Local Identifier
90109
If doing simultaneous multiple local testing connections, set this uniquely for different processes -

0 commit comments

Comments
 (0)