Need help on how to pass special character in path

64 views
Skip to first unread message

muffy m

unread,
Nov 9, 2023, 9:29:02 PM11/9/23
to jmeter-...@googlegroups.com
Hi 

I need to pass special character | (Vertical bar, pipe) in the path
Can you advice how to pass it


I tried URL Encode enabling, still getting illegal character error 

Thanks
Hema

Dmitri T

unread,
Nov 10, 2023, 12:55:56 AM11/10/23
to jmeter-plugins
We cannot suggest anything without seeing your HTTP Request sampler configuration.

If the pipe symbol comes from correlation or parameterization you can wrap the variable or the whole URL path into __urlencode() function.

It will automatically convert pipe into %7C and do the same for other characters which require percent encoding.

More information on JMeter Functions concept: Apache JMeter Functions - An Introduction

muffy m

unread,
Nov 12, 2023, 6:04:22 PM11/12/23
to jmeter-plugins
Thanks Dmitri
Adding %7C worked for me
Reply all
Reply to author
Forward
0 new messages