Skip to content

Commit b880180

Browse files
committed
Docs for REST API custom port.
1 parent 415f502 commit b880180

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,11 @@ Once started, there won't be an actual proxy running until you create a new prox
3131
[~]$ curl -X POST http://localhost:9090/proxy
3232
{"port":9091}
3333

34+
or optionally specify your own port:
35+
36+
[~]$ curl -X POST -d 'port=9099' http://localhost:9090/proxy
37+
{"port":9099}
38+
3439
Once that is done, a new proxy will be available on the port returned. All you have to do is point a browser to that proxy on that port and you should be able to browser the internet. The following additional APIs will then be available:
3540

3641
- PUT /proxy/[port]/har - creates a new HAR attached to the proxy and returns the HAR content if there was a previous HAR. Supports the following parameters:

0 commit comments

Comments
 (0)