How to use Charles as an HTTP debug on the iOS side

Source: Internet
Author: User

Ext.: http://blog.csdn.net/messageloop3/article/details/9966727

How to use Charles as an HTTP debug on the iOS side

After noticing this caching in IPad Safari seemed a little funky, I made an effort to decipher some of the logic used By the browser cache. I didn ' t get very far, but in the process I figured off how to route my iPad HTTP traffic through a web debugger on my lap Top. It turns out it's very easy-to-do (although I ' m sure there are a more complicated-to-go about it).

What follows are a simple step-by-step for connecting your iPad to an HTTP debugging proxy. The main requirement is that your desktop/laptop and IPad are on the same wireless network. Then it's just a matter of telling your iPad to use your desktop as an HTTP proxy.

I ' m going to walk through what does this on a Mac with the highly recommended HTTP proxy appcharles, but the same basic St EPS should also work for a Windows HTTP debugger such as Fiddler. (Update:fiddler users, see Eric Lawrence ' s comment below.) Additionally, the steps is the same for connecting your iPhone or IPod Touch.

1. Get your system IP address for your desktop

The easiest-to-do-a MAC is to Spotlight your-to-the "Network Utility" app. Make sure your ' re on your Wi-Fi Network and take note of the IP address. This is your desktop ' s local IP.

2. Tell your iPad about your desktop IP

On your iPad, go to Settings > Wi-Fi and click the arrow next your Wi-Fi connection. Under "HTTP Proxy", select the Manual button and enter your desktop ' s IP address in the Server field. Then enter "8888″in the Port field. Close out.

3. Configure Charles

Open Charles and select Proxy > Proxy Settings. Under the Proxies tab, make sure the HTTP proxy value are set to 8888. Then click on the "Mac OS X" tab and check "Enable Mac OS X proxy" and "Use HTTP proxy". Click OK.

4. Start Capturing HTTP Traffic

Click the Record button in Charles and then load a Web page in IPad Safari. You should see the following alert asking your if you want to allow your iPad to connect to Charles. Select "Allow".

Now all of the your HTTP traffic in IPad Safari should is recorded by Charles.

When you're finished doing all of your fun HTTP debugging, don ' t forget to turn off the HTTP proxy in the Wi-Fi settings o F your iPad.

How to use Charles as an HTTP debug on the iOS side

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.