F
F
FEDKOTV2021-07-12 12:23:22
linux
FEDKOTV, 2021-07-12 12:23:22

How to find out where the web application sends requests?

There was a situation when, when accessing a PHP application (Laravel), the server responds for a long time.
In the logs, I noticed a request for some different IPs, one of them is Google. And just because of the expectation of a response from them, the application responds for a long time.
The catch is that nowhere in the code do I make requests for any third-party resources. Packages are all standard from the stall, nothing more.
What could be the reason and how is it possible to find out at the Laravel / nginx / linux level where and from where the request for these third-party ones comes from?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
U
unseriously, 2021-07-12
@FEDKOTV

tcpdumpwill also be helpful.
There is also such a utility strace, you can pass the PID of the process, the path to the file, the name of the process as parameters to it - it can show a lot of things. Might be useful in this case.

A
Alexander Falaleev, 2021-07-12
@suffix_ixbt

wireshark help!

D
Drovosek01, 2021-07-12
@Drovosek01

Fiddler Everywere has a nice GUI to view all requests and it's easy to see https too.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question