1. In the application development process, you will encounter a lot of network access problems, you do not have the ability to provide back-office services, you can crawl the network packets, get data interface, applied in the program. The steps to crawl network packets using Paros are described below.
2. To use the PAROS, you need to establish a Java environment, that is, to install the JDK, you can directly search the download and installation. If the difficulties encountered in the installation, can not find the correct installation package, if you need to refer to: http://jingyan.baidu.com/ article/e4511cf3e112ac2b845eaf8f.html to download and install the JDK. -----> then download paros, install it;
Operation Steps
1) First share the Mac computer's Ethernet to airport, so that the iOS device can connect via WiFi
Open System Preferences, locate the share, select Internet Share, and on the right, select airport by selecting Ethernet, connect to other computers in the following way. :
2) View your Mac computer's IP network segment remember, set up an Apple phone to connect to the Mac computer's wireless, set the HTTP proxy to manual, set the computer's IP address here the port is arbitrary but ensure >1024 (recommended 8080 port)
3) Start Paros, choose options in Tools
Set the IP address like a phone PC, like a port4)
Open the Paros folder, in the Paros folder has a Paros.jar file, click on it and run, will come out PAROS interface, I put PAROS interface function divided into three parts network send request will be displayed in 1, send (response) Request header and request body in 2 area display
5) then run the iphone program to see the packet.
Data analysis: GET protocol analysis
http://wbapp.mobile.sina.cn/interface/ninesquares/getsearchicon.php?udid=e4:ce:8f:7c:9c:41&uid=&wm= b207&posid=pos4f9ba29064868&from=603009301 2
This is the URL that can be displayed directly in the browser or can be obtained directly using the ASI
POST Protocol Analysis
is a bit more complicated for POST. The parameters need to be used in order to use the program parameters, such as http://api.maopao.com:80/maopao/v2.0/postlocationdeviceid= 1dfe9be1f679d04ebcec86cf74d41813bcbc0daf&geolat=40.0340&geolong=116.3441
After the interface is available, the parsing tool parses the returned data.
The installation and use of the Paros of the App capture packet packet