'REST API url parameters "+" as blank

I have the uri "/job/killJobs?jobId=tg+h1qjGGJbpwVAw9C1Pvw"
where tg+h1qjGGJbpwVAw9C1Pvw is the job Id,



Solution 1:[1]

Getting blank space at "+"

What's happening is that your "fetching the value" code is applying an application/x-www-form-urlencoded decoding of the query part, but you haven't used the matching encoding procedure when creating the URI.

/job/killJobs?jobId=tg%2Bh1qjGGJbpwVAw9C1Pvw

should produce the result you want (%2B being the pct-encoding of +).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 VoiceOfUnreason