Forum Discussion

WesleyG's avatar
WesleyG
Occasional Contributor
8 years ago
Solved

Percent sign in variables

When I use a percent sign in a variable, the output seems to add the number 25 after it.

 

For example:

Variable name: test

Variable type: constant

Variable value: %abc

 

If I add that variable to a request, it actually inputs %25abc instead of %abc. Is there a way around this?

  • WesleyG's avatar
    WesleyG
    8 years ago

    Thanks for the info! I was able to solve the problem by using a data selector that does a URL decode. If it wasn't for this info I wouldn't have been able to solve it, so thanks again!

2 Replies

  • Hi,

     

    %25abc is URL encoded %abc. If you parameterize query string or form parameters, LoadComplete performs implicit URL encoding of the value. Does this cause any issues?

    • WesleyG's avatar
      WesleyG
      Occasional Contributor

      Thanks for the info! I was able to solve the problem by using a data selector that does a URL decode. If it wasn't for this info I wouldn't have been able to solve it, so thanks again!