Return-Path: X-Original-To: apmail-jmeter-user-archive@www.apache.org Delivered-To: apmail-jmeter-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 056489F14 for ; Tue, 7 Feb 2012 22:53:30 +0000 (UTC) Received: (qmail 99976 invoked by uid 500); 7 Feb 2012 22:53:29 -0000 Delivered-To: apmail-jmeter-user-archive@jmeter.apache.org Received: (qmail 99426 invoked by uid 500); 7 Feb 2012 22:53:28 -0000 Mailing-List: contact user-help@jmeter.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "JMeter Users List" Delivered-To: mailing list user@jmeter.apache.org Received: (qmail 99187 invoked by uid 99); 7 Feb 2012 22:53:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 22:53:28 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of havardb@google.com designates 209.85.217.171 as permitted sender) Received: from [209.85.217.171] (HELO mail-lpp01m020-f171.google.com) (209.85.217.171) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 07 Feb 2012 22:53:21 +0000 Received: by lbjn8 with SMTP id n8so2202539lbj.2 for ; Tue, 07 Feb 2012 14:53:00 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=gamma; h=mime-version:date:message-id:subject:from:to:x-system-of-record :content-type; bh=rbvf1qs/qeLYM/eeuPb2OloSUzjIALBa3E/bYljILEA=; b=G8F36B+8SUoowhnd1GM4eqqchaXoqxnSnYuvYL0L0xy/mHS4TOEWgiHuL6MwHuu2/g YacLBGW5yIbXeSQIiz2JuqOlXxDL3cOTJvBUXRRoPRtnNz1Di/laWn28hvoQZbBV2+FY u2dm0Sp/t+hjijL40zQabQQ1oGzSPpdXY5p0I= Received: by 10.112.36.135 with SMTP id q7mr6804477lbj.86.1328655180219; Tue, 07 Feb 2012 14:53:00 -0800 (PST) MIME-Version: 1.0 Received: by 10.112.36.135 with SMTP id q7mr6804472lbj.86.1328655180140; Tue, 07 Feb 2012 14:53:00 -0800 (PST) Received: by 10.112.85.169 with HTTP; Tue, 7 Feb 2012 14:53:00 -0800 (PST) Date: Tue, 7 Feb 2012 14:53:00 -0800 Message-ID: Subject: "wget" with Apache HttpClient? From: Havard Blok To: JMeter Users List X-System-Of-Record: true Content-Type: multipart/alternative; boundary=e0cb4efe2e520a928304b867a45f --e0cb4efe2e520a928304b867a45f Content-Type: text/plain; charset=ISO-8859-1 Background: This assumes a custom implemented sampler, which combines multiple type of requests in the runTest() call, e.g. HTTP, GWT RPC. For the HTTP part, we would like to download the full page, including referenced objects like images, .js, .css. Using the Apache HttpClient API, it is easy to request a single HTML page, and read back the response. (Doc: http://hc.apache.org/httpcomponents-client-ga/tutorial/html/fundamentals.html#d5e43). However, is there also an extension of this API which will download the other objects referenced in the initial HTML? That would include things like images, Java Script files, CSS. Thus providing a functionality similar to the command line tool wget. One option is of course going with a tool like Selenium / Web Driver, however, at this point we don't really need the rendering part (and might not be able to run the browser component of these tools). We would just like to exercise the server by downloading these extra static objects. Writing our own HTML parser for this seems redundant, so I'm hoping there is a library for this already. Regards, Havard -- --->Google Switzerland GmbH Identifikationsnummer: CH-020.4.028.116-1<---- --e0cb4efe2e520a928304b867a45f--