Skip to content

Instantly share code, notes, and snippets.

@hungdev
Last active January 7, 2025 14:03
Show Gist options
  • Save hungdev/9909b4488bd53cca18cf8b8160194aef to your computer and use it in GitHub Desktop.
Save hungdev/9909b4488bd53cca18cf8b8160194aef to your computer and use it in GitHub Desktop.
charles
https://viblo.asia/p/charles-ung-dung-cong-cu-charles-vao-kiem-thu-Qbq5Q1A45D8

https://www.youtube.com/watch?v=AW2vTBRfOrU&fbclid=IwAR2Wx7y_z2lyctwwVPXa_szQe47A60qnjKTDnGE0yUGy7MFmzHCQzs_zx34


với các lần sau:
ở Iphone vào wifi => config proxy => manual => ip laptop port 8888 ( khi config cái này thì ở charles laptop nó sẽ hỏi allow )
general => about => certificate => enable charles CA
general => profile & device management => check xem đã có charles proxy CA chưa.

ở Chales laptop:
proxy => ssl proxy setting => enable proxy setting => tab include add *, tab exclude để trống
===================
Update
1.ở Iphone vào wifi => config proxy => manual => ip laptop port 8888 ( khi config cái này thì ở charles laptop nó sẽ hỏi allow )
2 Tiếp theo vào safari với url: https://charlesproxy.com/getssl để tải cer
3.Trên dt vào general => about => Certificate Trust settings => enable charles CA
4. general => about => VPN & Device Management => Install Charles Proxy CA ( khi ở bước 1 nó chỉ hỏi allow chứ nó chưa install, lúc này thuong sẽ có 1 cái dòng ở dưới avatar trong setting, nhấp vào nó, nó sẽ nhảy qua VPN & Device Management )
5. Check lại bước 2 vì nó auto disable, cần enable lên
6. ở Chales laptop:
proxy => ssl proxy setting => enable proxy setting => tab include add * ở cả host and port, tab exclude để trống

Note: Nếu sau khi thêm * vào ssl proxy mà mac ko vào được web thì trên thanh công cụ chọn Proxy => bỏ check macOs Proxy đu
Done!
@hungdev
Copy link
Author

hungdev commented Jan 29, 2024

Khi api nó chỉ trả về 304 thì enable no cache bằng cách: vào tools => No caching...
https://stackoverflow.com/questions/59016501/the-charles-4-5-4-shows-304-not-modified-status-code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment