Skip to content

Latest commit

 

History

History
29 lines (20 loc) · 875 Bytes

README.md

File metadata and controls

29 lines (20 loc) · 875 Bytes

Capture HTTPS Request traffic from Python (requests vs httpx) with Proxyman

This is a simple example of how to capture HTTPS request traffic from Python using the Proxyman tool.

Prerequisites

  • Proxyman macOS app installed. Download from here.
  • Python 3.12 or later installed.

Running the Python Script

  1. Make sure you have the required packages installed:
pip install requests httpx
  1. Run the Proxyman app -> Setup menu -> Automatic Setup… -> Click on "Open new Terminal" button.

Proxyman Setup

  1. On the new Terminal -> Run the Python script:
python main.py

Run python script

  1. On the Proxyman app, Proxyman will automatically capture the HTTPS request traffic from the Python script.

Proxyman automatically capture Python requests

  1. Done!