When I try to pass "+" sign as a part of query parameter in different ways, it encodes any of the results.
I expect to pass phone
parameter with +380999418260
value.
Tried the most expected right way:
request:
method: GET
url: /customers/prepaid
queryParameters:
phone: "%2B380999418260"
headers:
Content-Type: application/x-www-form-urlencoded
Also tried to pass directly from url:
request:
method: GET
url: /customers/prepaid?phone=%2B380999418260
headers:
Content-Type: application/x-www-form-urlencoded
Both says that phone is %2B380999418260
From the logs, it converts the % sign:
"X-Query-String":"phone=%252B380999418260"
I also tried to pass it non-encoded:
request:
method: GET
url: /customers/prepaid
queryParameters:
phone: "+380999418260"
headers:
Content-Type: application/x-www-form-urlencoded
But in this case it converts the + sign to space character.
When I access this endpoint from Postman with this uri /customers/prepaid?phone=%2B380999418260
it returns the correct response, where the correct phone with "+" sign is used.