Forum Discussion

josette_merhy12's avatar
Occasional Contributor
11 years ago

[LoadUIWeb] Getting Variable from Location URL in http respond


I am new with the Load in general. I have a question if it is doable:

I have a POST request that is returning in the respond a URL in Location header, example:

the code and state are used in the GET request  after it, example:

GET /?code=vE6B%21IAAAAIfz9k64WnrjsCnup13YxxhwdbMr1WzgAYTc8_RqA1HjAQEAAAGaMETlbb2VCyzyx-YDWBuNcst7f7_bRN4aZKefGmDAZl_Ny8frx3ysIIveToiRkMUV4UxSnMEzkpghbp1Dg-QMpBbogyNn2kDG9PsamingcqSudAq1sropRCDT1uL03u7Uejkk_V9lucpmHC2czUX5Wv_bhkJW18-Ed-zDBHSmj3nBRFzoZQVhL0Cvdl6N6begL0CnBO5jzW_7HcFzQoAAcUOEUvfmIGtcHOWNtDh8WtU5ioRzvAGD_9nPbZ6k8Ddvg4qGqWWljiVblbazmmyBeWII9FMySgiTztNLnVblDrBRo2RNGqgvXONSdlnSZZk2amSFNYZGMYeNDmBCKUlN&state=1s-zZQtsxkH41k0kgIG6Jw HTTP/1.1

HOW can i catch the code and state in the url in Location of a respond and use it in another request? Can anyone help me with this isse as it is very important for me to be able to do a load testing on my website.

Thank you,


2 Replies

  • josette_merhy12's avatar
    Occasional Contributor
    Can anyone give the regulare expression for:

    <html><head><title>Object moved</title></head><body>

    <h2>Object moved to <a href="">here</a>.</h2>

  • the regular expression would be something like:


    ...where the (.*?) selects the value of the code querystring parameter, but you might want to continue to fiddle around with this statement so that the header can also fiddle around with this kind of statement in something like: