Quantcast
Channel: [Q&A - FAQ Neotys] Last questions
Viewing all articles
Browse latest Browse all 2283

Variable extractor encoding from HTML to URL

$
0
0

I want to encode the correlation value from HTML to URL mode in Neoload.

Response - Rachel,Zane
Request - Rachel%2CZane

Please help me with the Custome Code in variable extractor to conver these values. I have tries the drop HTML and URL and its not working as I am not getting the converted values.

Earlier, I have used custom code to convert URL into HTML mode. Below is the custom code for the same.

function decode(encodedValue) {
var decodedValue = encodedValue;
String.prototype.decodeEscapeSequence = function() {
return this.replace(/\\x([0-9A-Fa-f]{2})/g, function() {
return String.fromCharCode(parseInt(arguments[1], 16));
});
};
decodedValue= decodedValue.decodeEscapeSequence();

return decodedValue;
}


Viewing all articles
Browse latest Browse all 2283

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>