I'm running some load tests for a client, which are intended to measure the capacity of a particular web server to deal with heavy traffic. The option to download embedded resources with an HTML page is of course very useful in simulating a realistic load. However, the pages contain a few embedded resources from other servers (e.g. ads from a company-wide ad server). These shouldn't be fetched, because we don't want to DoS the ad server or distort the statistics that it collects. It would be useful if there were some way to fetch only those embedded resources that live on the same host as the HTML page itself. I'll attach a simple implementation of such an option, in case it's useful.
Created attachment 19104 [details] Patch against JMeter 2.2. Adds an option to retrieve embedded resources only from same server. Here's the patch (against 2.2)
See Bug 40945 which is a more general enhancement (match against RE) The code has been added to SVN; will be in nightlies after r516782.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1821