Use Charles proxy to detect api


Charles is an HTTP proxy / HTTP monitor / Reverse Proxy that enables a developer to view all of the HTTP and SSL / HTTPS traffic between their machine and the Internet. This includes requests, responses and the HTTP headers (which contain the cookies and caching information).

In this example I will use Charles proxy to track Pinterest api
  1. First step: Download Pinterest application to your phone. My phone is iPhone.IMG_1525
  2. Second step: Download Charles proxy from to your PC or laptop
  3. Connect your phone to use the same wifi network with your computer.Screen Shot 2015-12-14 at 15.22.42IMG_1527
  4. Config your phone connectionIMG_1526
    1. Server: is IP of your computer
    2. Port: 8888
  5. Track Pinterest apiScreen Shot 2015-12-14 at 15.28.49
With Charles proxy, you can debug, test, … any http request. It is powerful tool when coding mobile client with restful api.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s