Let say you need to use the HTTP load testing and benchmarking utility siege on a web page
and you also want to use the --internet
option, to simulate at best the behavior of a web browser.
When a web browser load a page, it also load all the resources inside that page:
- Images
- JavaScript files
- CSS
- Media resources
So you need a list of all URLs taken from that page.
This utility (its name mean "You Will Download") will simply create this list for you.
You simply need to redirect the utility output to a file, then use also the siege --file
option.
$ youlldownload http://host.com/section/page
Using with siege:
$ youlldownload http://host.com/section/page > list.txt $ siege -i -f list.txt [other options]
- from
script
tags we'll take thesrc
URL - from
link
tags withrel
equals tostylesheet
we'll take thehref
url - from
img
tags we'll take thesrc
URL - from
object
tags we'll take thedata
URL - from
embed
tags we'll take thesrc
URL - from
style
tags we'll take the URL inside if the tag is using an "@import url" directive - from
iframe
tags we'll take thesrc
URL - from
source
tags insidevideo
we'll take thesrc
URL
Also: CSS sources are deeply analyzed for found additional resources inside them (like background images, fonts, ...).
This product was developed by RedTurtle Technology team.