How to get all link information of network in php
BLUE-SKY.COM.CN
BLUE-SKY.COM.CN 2022-05-20 21:19:49
0
4
1379

When we use the browser to open the URL, there are many URLs for loading resources in the network. How to use php to get the list of all URLs here. Using curl can only print out the web page code. How to solve the problem if I want to see all the transmitted URLs?

微信图片_20220520211805.png

BLUE-SKY.COM.CN
BLUE-SKY.COM.CN

reply all(2)
大瓶可乐

Probably not possible because your request has already been loaded on the client side, and then php can only be loaded on the server side

BLUE-SKY.COM.CN

That is to say, after php accesses the url, it obtains all the urls for the resources loaded by the url, which is all the connection information we usually see using network.

  • reply What do you want to do specifically? But after you curl to obtain the web page code, you can use regular expressions to match all addresses! Mainly I want to see what your needs are
    大瓶可乐@php.cn author 2022-05-23 20:36:41
  • reply You can try this course https://www.php.cn/course/1099.html crawler course
    大瓶可乐@php.cn author 2022-05-23 20:44:33
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template