Java is a programming language, not a packet capture and analysis tool. If those URLs originally exist in the web page, you can use regular expressions to match them~ If the URL is dynamically generated, it will be more laborious to analyze the algorithm.
If you just want to get the video file, you can find it from the browser's cache folder. Chrome’s cache folder is generally called Cache First clear the cache folder, then watch the video. After the video buffersis completed, copy the files in the cache folder and change the extension to the corresponding format. For example: .mp4 ; .flv…
It can be obtained, if you use the springMVC framework //The current requested url String url = request.getRequestURL().toString(); //query is everything after the question mark in the url String queryString = request.getQueryString(); In addition, the content of the request header can also be obtained, please see Du Niang for details
Java is a programming language, not a packet capture and analysis tool.
If those URLs originally exist in the web page, you can use regular expressions to match them~
If the URL is dynamically generated, it will be more laborious to analyze the algorithm.
If you just want to get the video file, you can find it from the browser's cache folder.
Chrome’s cache folder is generally called Cache
First clear the cache folder, then watch the video. After the video buffersis completed, copy the files in the cache folder and change the extension to the corresponding format.
For example:
.mp4
;.flv
…It can be obtained, if you use the springMVC framework
//The current requested url
String url = request.getRequestURL().toString();
//query is everything after the question mark in the url
String queryString = request.getQueryString();
In addition, the content of the request header can also be obtained, please see Du Niang for details