gordillo_ramon
13 years agoContributor
UTF-8 double encoding in URL for REST resources
Hi.
I set up a REST project with a test case for calling the server. The resource URL has a parameter that needs to be encoded (te:+44...), but I get a surprise when I saw the url like "tel%253A%252B447309700001" instead of the expected "tel%3A%2B447309700001". Attached the screenshot where you see that the url over the request is correctly encoded, but the url in the post is "double" encoded (the "%" has been encoded again).
Can you confirm if there is a bug related with double encoding in REST urls?
Many thanks.
Ramon
I set up a REST project with a test case for calling the server. The resource URL has a parameter that needs to be encoded (te:+44...), but I get a surprise when I saw the url like "tel%253A%252B447309700001" instead of the expected "tel%3A%2B447309700001". Attached the screenshot where you see that the url over the request is correctly encoded, but the url in the post is "double" encoded (the "%" has been encoded again).
Can you confirm if there is a bug related with double encoding in REST urls?
Many thanks.
Ramon