Monachus
Monachus

Reputation: 314

HTTPResponse debugging with the android emulator

I would like to know if there is anyway to debug the HTTP response with the android emulator. my logs show that the response is not arriving complete to the application and i would like to know if it is the server that does not send the complete response or if my application is not processing the response completely.

I tried hooking up Fiddler and Blurp proxy, it actually works with Blurp proxy but only for HTTP and as you may guess i need it also for HTTPS

Upvotes: 2

Views: 1313

Answers (3)

Sahil Gupta
Sahil Gupta

Reputation: 461

You can try out Requestly. It has one click support to connect to Android Emulators which can help you modify the response of the https requests too.

Steps

  1. Download Requestly Desktop App from here.
  2. Start your Android Emulator.
  3. Go to Mobile Apps & Browsers tab.
  4. Click on Connect button of emulator you want to connect to.

Requestly Android Emulator Debugger

You might need to trust CA certificate if SSL pinning is enabled for your app.

That's it. Now you can see all your network requests and modify them if needed. Here are the docs for same

Upvotes: 0

Christopher Orr
Christopher Orr

Reputation: 111565

See this answer regarding capturing network traffic on the emulator:
Android emulator: How to monitor network traffic?

Upvotes: 1

Ricardo Villamil
Ricardo Villamil

Reputation: 5107

You can setup TCP/IP Monitor within eclipse. Then point your android emulator to talk to your computer and to the port you setup the monitor to listen on. The monitor will then forward the request to the appropriate host (which you configure when you create the monitor). This works nicely for your problem ;)

Take a look at this

Upvotes: 0

Related Questions