Good day! How can I get all http site requests?
those. requests like GET <anything>
In general, if it is even more specific - then when loading a site, in addition to a Get request relating to the site itself, requests for loading pictures are processed, and so on. How can I get these requests?
- oneThis is a very vague question - Artemis
- fixed the question - woland
- to break the easy Petrosyan Forum lacks such sparkling personalities - woland
- dear person on replies mail.ru - koza4ok
- onePetrosyans- go to the answers. Mail.ru, where are the normal questions on regexp, javascript, html, php, java, python? - ReinRaus
1 answer
On the client side (browser) or server?
If from the browser - then you can use the built-in managers (usually open by right-clicking on the page - "Inspect the element" - Network). You reload the page, and in the diagram will be shown all requests, and their time. You can also use the program HTTP Analyzer V6, it is in great detail all traffic.
If on the server, then teach the device TCP / IP. Each request occurs in a new connection session, directly from the php script or how not to get it. If you need only for information - you can save each request to a file. Or set up logging in apache or another web server.
PS: Regarding the "Petrosyanism" - what is the question (the first option), so is the answer.
- on the server side. I want to do an analysis of the queries, approximately how here pr-cy.ru/a/3dnews.ru#analysis-content - woland
- Then you need to invent a logging system into the database. I don’t know how to do this for apache, for nginx I saw a similar script somewhere. On the php side, do not. PS: for your site, or for others? - Evgeny Karpov
- for other sites - woland