Sitelet https://github.com/jackma8ge8/anyproxy/commit/15d7ed48bfa57912c6b081c6f942349e8ce2ee82
Skip to content

Commit 15d7ed4

Browse files
committed
docs tip
1 parent 67151c0 commit 15d7ed4

4 files changed

Lines changed: 34 additions & 26 deletions

File tree

‎docs-src/cn/README.md‎

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -536,8 +536,8 @@ module.exports = {
536536
anyproxy --rule rule_sample/sample_use_local_response.js
537537
```
538538
```js
539-
/*
540-
sample:
539+
/*
540+
sample:
541541
intercept all requests toward httpbin.org, use a local response
542542
test:
543543
curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001
@@ -566,8 +566,8 @@ module.exports = {
566566
anyproxy --rule rule_sample/sample_modify_request_header.js
567567
```
568568
```js
569-
/*
570-
sample:
569+
/*
570+
sample:
571571
modify the user-agent in requests toward httpbin.org
572572
test:
573573
curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001
@@ -655,8 +655,8 @@ module.exports = {
655655
anyproxy --rule rule_sample/sample_modify_request_protocol.js
656656
```
657657
```js
658-
/*
659-
sample:
658+
/*
659+
sample:
660660
redirect all http requests of httpbin.org to https
661661
test:
662662
curl 'http://httpbin.org/get?show_env=1' --proxy http://127.0.0.1:8001
@@ -685,8 +685,8 @@ module.exports = {
685685
anyproxy --rule rule_sample/sample_modify_response_statuscode.js
686686
```
687687
```js
688-
/*
689-
sample:
688+
/*
689+
sample:
690690
modify all status code of http://httpbin.org/ to 404
691691
test:
692692
curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001
@@ -714,8 +714,8 @@ module.exports = {
714714
anyproxy --rule rule_sample/sample_modify_response_header.js
715715
```
716716
```js
717-
/*
718-
sample:
717+
/*
718+
sample:
719719
modify response header of http://httpbin.org/user-agent
720720
test:
721721
curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001
@@ -743,8 +743,8 @@ module.exports = {
743743
anyproxy --rule rule_sample/sample_modify_response_data.js
744744
```
745745
```js
746-
/*
747-
sample:
746+
/*
747+
sample:
748748
modify response data of http://httpbin.org/user-agent
749749
test:
750750
curl 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001
@@ -827,6 +827,8 @@ module.exports = {
827827
* 设置 -> 安全性与位置信息 -> 加密与凭据 -> 从存储设备安装。找到你下载的证书文件,进行安装
828828
* 设置 -> 安全 -> 从SD卡安装证书。找到你下载的证书文件,进行安装
829829

830+
不同安卓系统支持安装的证书文件类型也不尽相同,大多数系统支持安装拓展名为 .crt 的证书文件,少部分仅支持 .cer 文件(已知如 OPPO R15),AnyProxy 提供了多种类型的证书文件可在下载安装时选择。
831+
830832
### 配置iOS/Android系统代理
831833

832834
* 代理服务器都在wifi设置中配置

‎docs-src/cn/src_doc.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,8 @@ module.exports = {
628628
* 设置 -> 安全性与位置信息 -> 加密与凭据 -> 从存储设备安装。找到你下载的证书文件,进行安装
629629
* 设置 -> 安全 -> 从SD卡安装证书。找到你下载的证书文件,进行安装
630630

631+
不同安卓系统支持安装的证书文件类型也不尽相同,大多数系统支持安装拓展名为 .crt 的证书文件,少部分仅支持 .cer 文件(已知如 OPPO R15),AnyProxy 提供了多种类型的证书文件可在下载安装时选择。
632+
631633
### 配置iOS/Android系统代理
632634

633635
* 代理服务器都在wifi设置中配置

‎docs-src/en/README.md‎

Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -528,8 +528,8 @@ module.exports = {
528528
anyproxy --rule rule_sample/sample_use_local_response.js
529529
```
530530
```js
531-
/*
532-
sample:
531+
/*
532+
sample:
533533
intercept all requests toward httpbin.org, use a local response
534534
test:
535535
curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001
@@ -558,8 +558,8 @@ module.exports = {
558558
anyproxy --rule rule_sample/sample_modify_request_header.js
559559
```
560560
```js
561-
/*
562-
sample:
561+
/*
562+
sample:
563563
modify the user-agent in requests toward httpbin.org
564564
test:
565565
curl http://httpbin.org/user-agent --proxy http://127.0.0.1:8001
@@ -647,8 +647,8 @@ module.exports = {
647647
anyproxy --rule rule_sample/sample_modify_request_protocol.js
648648
```
649649
```js
650-
/*
651-
sample:
650+
/*
651+
sample:
652652
redirect all http requests of httpbin.org to https
653653
test:
654654
curl 'http://httpbin.org/get?show_env=1' --proxy http://127.0.0.1:8001
@@ -677,8 +677,8 @@ module.exports = {
677677
anyproxy --rule rule_sample/sample_modify_response_statuscode.js
678678
```
679679
```js
680-
/*
681-
sample:
680+
/*
681+
sample:
682682
modify all status code of http://httpbin.org/ to 404
683683
test:
684684
curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001
@@ -706,8 +706,8 @@ module.exports = {
706706
anyproxy --rule rule_sample/sample_modify_response_header.js
707707
```
708708
```js
709-
/*
710-
sample:
709+
/*
710+
sample:
711711
modify response header of http://httpbin.org/user-agent
712712
test:
713713
curl -I 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001
@@ -735,8 +735,8 @@ module.exports = {
735735
anyproxy --rule rule_sample/sample_modify_response_data.js
736736
```
737737
```js
738-
/*
739-
sample:
738+
/*
739+
sample:
740740
modify response data of http://httpbin.org/user-agent
741741
test:
742742
curl 'http://httpbin.org/user-agent' --proxy http://127.0.0.1:8001
@@ -809,6 +809,8 @@ install :
809809

810810
* Besides installing root CA, you have to "turn on" the certificate for web manually in *settings - general - about - Certificate Trust Settings*. Otherwire, safari will not trust the root CA generated by AnyProxy.
811811

812+
<img src="https://zos.alipayobjects.com/rmsportal/hVWkXHrzHmOKOtCKGUWx.png" width="500" />
813+
812814
### trust root CA in Android
813815
First of all, you need to download the root CA by clicking *Root CA* in web ui, and then scan the QR code.
814816
Installing CA in Android could be different based on the system, we list some common steps as below, but you can find the right way in you system with similar menu path.
@@ -818,7 +820,7 @@ Installing CA in Android could be different based on the system, we list some co
818820
* Settings -> Security & Location > Encryption & credentials -> Install from storage, and find your CA file to install
819821
* Settings -> Security -> Install from SD card, and find you CA file to install
820822

821-
<img src="https://zos.alipayobjects.com/rmsportal/hVWkXHrzHmOKOtCKGUWx.png" width="500" />
823+
As we konw, there are several file extensions of CA file which may not recognised by all kinds of Android OS. The .crt file is the most popular, and a few systems only support .cer file such as OPPO R15. In AnyProxy, you can choose what type of file you need before installing the root CA to your devices.
822824

823825
### config iOS/Android proxy server
824826

‎docs-src/en/src_doc.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -610,6 +610,8 @@ install :
610610

611611
* Besides installing root CA, you have to "turn on" the certificate for web manually in *settings - general - about - Certificate Trust Settings*. Otherwire, safari will not trust the root CA generated by AnyProxy.
612612

613+
<img src="https://zos.alipayobjects.com/rmsportal/hVWkXHrzHmOKOtCKGUWx.png" width="500" />
614+
613615
### trust root CA in Android
614616
First of all, you need to download the root CA by clicking *Root CA* in web ui, and then scan the QR code.
615617
Installing CA in Android could be different based on the system, we list some common steps as below, but you can find the right way in you system with similar menu path.
@@ -619,7 +621,7 @@ Installing CA in Android could be different based on the system, we list some co
619621
* Settings -> Security & Location > Encryption & credentials -> Install from storage, and find your CA file to install
620622
* Settings -> Security -> Install from SD card, and find you CA file to install
621623

622-
<img src="https://zos.alipayobjects.com/rmsportal/hVWkXHrzHmOKOtCKGUWx.png" width="500" />
624+
As we konw, there are several file extensions of CA file which may not recognised by all kinds of Android OS. The .crt file is the most popular, and a few systems only support .cer file such as OPPO R15. In AnyProxy, you can choose what type of file you need before installing the root CA to your devices.
623625

624626
### config iOS/Android proxy server
625627

0 commit comments

Comments
 (0)