jmeter-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Deepak Shetty <shet...@gmail.com>
Subject Re: Regular Expression Extractor Returns Spaces instead of characters
Date Tue, 26 Mar 2013 22:54:45 GMT
what is the value of the encode checkbox?


On Tue, Mar 26, 2013 at 3:19 PM, Aaron Tracy <Aaron.Tracy@octanner.com>wrote:

> Hi!
>
>   I've got a regular expression (
> content=\"([A-Za-z0-9!"#$%&'()*+,./:;<=>?@\^_`{|}~-]+)\" name="csrf-token )
> That grabs my authentication token, the problem that I'm having is that
> when I use the variable that should have my authentication token that looks
> like this:
>
> ELVM+rEgERKSGA4d9mld+PiMf1dRtub9wuuBE1rKflM=
>
> Is stored in the variable and used in another request, the + and = are
> stripped from the token and
>
> ELVM rEgERKSGA4d9mld PiMf1dRtub9wuuBE1rKflM
>
> Is used instead which causes my script to break.  I've tried to wrap a
> function around it to replace all spaces with a + but that didn't work (
> not to mention this doesn't handle the missing = ).  How do I escape the +
> and = characters so the variable retains the + and = signs?
>
> Thank you!
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message