Return-Path: Delivered-To: apmail-jakarta-jmeter-user-archive@www.apache.org Received: (qmail 50439 invoked from network); 20 Jan 2009 17:29:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Jan 2009 17:29:03 -0000 Received: (qmail 63486 invoked by uid 500); 20 Jan 2009 17:28:56 -0000 Delivered-To: apmail-jakarta-jmeter-user-archive@jakarta.apache.org Received: (qmail 63461 invoked by uid 500); 20 Jan 2009 17:28:56 -0000 Mailing-List: contact jmeter-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "JMeter Users List" Reply-To: "JMeter Users List" Delivered-To: mailing list jmeter-user@jakarta.apache.org Received: (qmail 63450 invoked by uid 99); 20 Jan 2009 17:28:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 09:28:56 -0800 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,NORMAL_HTTP_TO_IP,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of daveprovan@hotmail.com designates 65.55.116.46 as permitted sender) Received: from [65.55.116.46] (HELO blu0-omc1-s35.blu0.hotmail.com) (65.55.116.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 20 Jan 2009 17:28:46 +0000 Received: from BLU139-W22 ([65.55.116.8]) by blu0-omc1-s35.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 20 Jan 2009 09:28:26 -0800 Message-ID: Content-Type: multipart/alternative; boundary="_7695c114-07ef-495a-9c9d-409fb71114fd_" X-Originating-IP: [195.212.29.75] From: David Provan To: JMeter List Subject: RE: Redirects on HTTP Request Date: Tue, 20 Jan 2009 17:28:25 +0000 Importance: Normal In-Reply-To: <4C18B43DBBF99443A65145AE575757EF717A51@oslexcp4.eu.tandberg.int> References: <4C18B43DBBF99443A65145AE575757EF717A51@oslexcp4.eu.tandberg.int> MIME-Version: 1.0 X-OriginalArrivalTime: 20 Jan 2009 17:28:26.0250 (UTC) FILETIME=[808C7EA0:01C97B24] X-Virus-Checked: Checked by ClamAV on apache.org --_7695c114-07ef-495a-9c9d-409fb71114fd_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi=2C I considered this=2C however the product we're testing against can throw 1 = to n redirects (the largest number I have seen so far is 7 in a row). Othe= rwise that would work nicely! For example /someapp/servlet redirects to /someapp/another_servlet redirects to /someap= p/next_servlet redirects to /someapp/final_servlet Thanks David. > Subject: RE: Redirects on HTTP Request > Date: Tue=2C 20 Jan 2009 12:24:25 -0500 > From: Steve.Kapinos@tandberg.com > To: jmeter-user@jakarta.apache.org >=20 > Why not follow the redirect manually rather then automatically? Extract > the path from the response header with regex and feed that as your path > into the next sample. How can Jmeter know which server you want to hit? > You need to tell it explicitly. >=20 > -----Original Message----- > From: David Provan [mailto:daveprovan@hotmail.com]=20 > Sent: Tuesday=2C January 20=2C 2009 12:17 PM > To: JMeter List > Subject: Redirects on HTTP Request >=20 >=20 > Hi=2C >=20 > I am using HTTP Request nodes to sample against a site however we have > come accross an issue when redirecting. >=20 > I have multiple HTTP Servers so to ensure I "hit" the correct one I use > the HTTP Header Manager to set a "Host" attribute in the HTTP Request > sample set the IP address to hit >=20 > e.g. http://1.2.3.4/some/servlet >=20 > The code I am hitting then sends a redirect which JMeter will > automatically follow=2C however the returning redirect contains the host > not the IP address so I no longer can be sure of the web server I am > testing against. >=20 > For example. >=20 > I request http://1.2.3.4/some/servlet (Host: header set to > www.example.com). >=20 > This returns a redirect of http://www.example.com/its/moved/to/here. >=20 > Is it possible in JMeter to replace the returned www.example.com in the > redirect URL with the IP address? >=20 > Thanks in advance for any assistance. >=20 > David Provan >=20 > _________________________________________________________________ > Choose the perfect PC or mobile phone for you > http://clk.atdmt.com/UKM/go/130777504/direct/01/ >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: jmeter-user-unsubscribe@jakarta.apache.org > For additional commands=2C e-mail: jmeter-user-help@jakarta.apache.org >=20 _________________________________________________________________ Are you a PC?=A0 Upload your PC story and show the world http://clk.atdmt.com/UKM/go/122465942/direct/01/= --_7695c114-07ef-495a-9c9d-409fb71114fd_--