You cannot make the equivalent of ls unless the server provides such lists. However, you can get index.html and then check if it includes, for example. something like
wget -O - http://www.example.com | grep "type=.\?text/javascript.\?"
Please note that this depends on whether the HTML is formatted in a certain way - in this case, for example, with separate lines. If you want to do it right, I would recommend parsing HTML and extracting javascript has included this path.
Lars kotthoff
source share