You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by Thomas Moyer <tm...@cse.psu.edu> on 2008/12/06 20:16:18 UTC

Reading Headers and creating custom requests

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Is it possible in a test plan to read the headers returned from a  
request (which will contain a URL) and then request the indicated URL?

~tom

- --
Thomas Moyer
Graduate Student
CSE Department
Penn State University
tmmoyer@cse.psu.edu
http://www.cse.psu.edu/~tmmoyer

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAkk6z4IACgkQa7Yypxfw9Tc14wCeOOJ0pWogFI28Mu54HMcyTyPa
3aAAn2xdw/kelb9m7bxHPyhod6/VQ56o
=LT+H
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Reading Headers and creating custom requests

Posted by sebb <se...@gmail.com>.
On 06/12/2008, Thomas Moyer <tm...@cse.psu.edu> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>  Hash: SHA1
>
>  Is it possible in a test plan to read the headers returned from a request
> (which will contain a URL) and then request the indicated URL?
>

Yes, use the Regex Extractor and set the "Response Field to check" to "Headers":

http://jakarta.apache.org/jmeter/usermanual/component_reference.html#Regular_Expression_Extractor

You can then use the variable in a subsequent sampler.


>  ~tom
>
>  - --
>  Thomas Moyer
>  Graduate Student
>  CSE Department
>  Penn State University
>  tmmoyer@cse.psu.edu
>  http://www.cse.psu.edu/~tmmoyer
>
>  -----BEGIN PGP SIGNATURE-----
>  Version: GnuPG v1.4.8 (Darwin)
>
> iEYEARECAAYFAkk6z4IACgkQa7Yypxfw9Tc14wCeOOJ0pWogFI28Mu54HMcyTyPa
>  3aAAn2xdw/kelb9m7bxHPyhod6/VQ56o
>  =LT+H
>  -----END PGP SIGNATURE-----
>
> ---------------------------------------------------------------------
>  To unsubscribe, e-mail:
> jmeter-user-unsubscribe@jakarta.apache.org
>  For additional commands, e-mail:
> jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org