Nuapi.com still needs the invitation code, please attach my invitation code [NUAPI_JJ].

Charles is a common network packet interception tool on PC. In mobile development, network requests are often intercepted for analysis in order to debug the network communication protocol with the server. In addition to debugging ports for mobile development, Charles can also be used to analyze communication protocols for third-party applications. In conjunction with Charles’ SSL capabilities, Charles can also analyze the Https protocol. Charles intercepts and analyzes network requests by setting himself up as the system’s network access proxy server through which all network access requests are processed.

The main functions of Charles include:

  • Intercepts Http and Https network requests.
  • Supports resending network requests, facilitating back-end debugging.
  • Network request parameters can be modified.
  • Support network request interception and dynamic modification.
  • Support analog slow network.

Use a background

When debugging the interface with the company’s App 📱 colleagues, sometimes some very puzzling problems may occur. Sometimes it can be difficult to determine whether the problem is a front-end display Bug or an interface data exception. Usually at this point, the back end may need to go to the server to look at the log and troubleshoot with the log data. However, limited to complex situations such as tool networks, this approach is actually very inefficient. This is the time to need such a tool, can be running App interface returns in real time. Combined with the front view display, the cause of the problem can be found in a very short time. This will fix the problem quickly.

Charles used

  • Download (cracked version can be used)
  • The installation
  • configuration
  • To capture HTTPS, install the root certificate on the mobile phone

  • Set the proxy on the mobile phone. The IP address is 8888

Commonly used functions

Nuapi introduction

Nuapi is a new generation of network interface development debugging tool, ios or Android development is friendly

The use of nuapi

  • Registered account
  • The management page is displayed

  • Fill in your server’s domain name address like xxxx.com to get a new address [97a1fa5f.in.nuapi.com]

  • Mobile phone source code, change [own API address] tohttps://97a1fa5f.in.nuapi.comAfter this address
  • Click on any effect on the phone and you can see the requests coming in.

Nuapi is free

The price of Charles website is 199 per user, which requires a download and installation. Nuapi.com is for web use, free to use.

Request record Charles vs Nuapi

The original log of each request is recorded on both sides.

Nuapi keeps a diary of header body response body

The same returns

Share request Charles vs Nuapi

Now there is a request to share to others Charles can only share copies

Curl -h 'Host: tangqiu.meirixi.com' -h 'Accept: Application /json, text/plain, */*' -h 'version: 0.0.1' -h 'user-agent %E7% b3% 96%E7% 903/1 CFNetwork/1240.0.4 '-h' Accept-language: zhCopy the code

Or copy the download link

Nuapi can be shared as a web page

Can be shared on a separate page

So the API developer can quickly see what’s coming back

Try/resend Charles vs Nuapi

Charles can click any link to resend the request. The result after the request is the same as before.

Nuapi can also re-request the same request, and modify the parameters at the same time.

Modify the request parameters Charles vs Nuapi

Charles hits Rewrite to Rewrite before sendingquery.header. But there’s no way to define what’s returned.

Nuapi can customize the return of this link addressHeader Body

Modify the returned content Charles vs NuAPI

Charles cannot modify what is returned because he simply simulates the request and sends it again. For example, if an interface doesn’t exist, Charles can’t do anything about it.

Nuapi can customize the return of this link addressHeader Body When the address is requested again, the value is returned.

The advantage of Charles is that it can block all mobile requests, but it is complicated to download, install and configure. Once using a different wifi situation, then it is not available.

Nuapi has the following advantages

  1. Logging requests
  2. Convenient sharing
  3. Rapid retry
  4. Customize the returned content

Therefore, it is a good choice to try to use Nuapi.com instead of Charles to realize the request of debugging app side.

Nuapi.com still needs the invitation code, please attach my invitation code [NUAPI_JJ].