I want to debug network communication on my PC.

Asked 1 years ago, Updated 1 years ago, 415 views

The web app I'm developing is accessing the API and I'm getting a request from my Mac. I'd like to check the status of the request and the contents of the communication. Can I check the communication using an app like wireshark?
Also, could you please let me know if you have any other recommended tools?

I think it's HTTPS request.
For example, I would be happy if I could debug communication with apps that I didn't develop.

Thank you for your cooperation.

Add

Does the term "web app" refer to an application that runs on a web browser?

  • That's right.A web application refers to a web browser that accesses and manipulates a local server.
    Therefore, requests to the external API itself are flying from the backend.

"There is a description of ""apps that I haven't developed"", but is this also a web app, or is it not limited to web browsers in general?"

  • This is not limited to web apps, but also to desktop apps such as iTunes and Dropbox.

Sorry for the fluffy question.

Usage

I would like to know if the web app under development throws communication to the API.
I wish I could look at it on a code basis, but I'd like to know if it's huge and I don't know where it is and if it's really thrown into the API.

Additional 2

I was able to intercept the contents of the communication when chrome connected using mitmproxy, but I couldn't confirm the contents when I skipped the request using cURL in desktop applications such as terminals.
Setup Reference Site
Use mitmproxy to check the app's communication

macos network http https debugging

2022-09-30 22:00

1 Answers

With Wireshark, it's hard to decode HTTPS, so the Proxy capture tool is better.For example, Burp Suite is a well-known tool.

However,

  • Enabling communication to the API to face Proxy
  • Preventing HTTPS as it will not be able to communicate as it is because the certificate is fabricated.

is required.If you use API communication all of a sudden, the hurdle is high, so you can start by looking at the browser communication with the client

As for how to use it, many people write explanatory articles, so please search for them.


2022-09-30 22:00

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.