Bug 40933

Summary: Option to retrieve embedded resources only from same server as main page
Product: JMeter - Now in Github Reporter: Robin Houston <robin>
Component: HTTPAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: enhancement    
Priority: P3    
Version: 2.2   
Target Milestone: ---   
Hardware: All   
OS: All   
Attachments: Patch against JMeter 2.2. Adds an option to retrieve embedded resources only from same server.

Description Robin Houston 2006-11-09 01:30:16 UTC
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.
Comment 1 Robin Houston 2006-11-09 01:33:37 UTC
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)
Comment 2 Sebb 2007-03-10 12:51:23 UTC
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.
Comment 3 The ASF infrastructure team 2022-09-24 20:37:38 UTC
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/1821