VSE not taking correct request for endpoint with comma separated parameters
search cancel

VSE not taking correct request for endpoint with comma separated parameters

book

Article ID: 74481

calendar_today

Updated On:

Products

CA Application Test CA Continuous Application Insight (PathFinder)

Issue/Introduction

REST URL has ","(comma) then DevTest is removing the values after the comma.

For example, the URL's are like below:
http://Hostname:Port/api/phone/details/2342341122,5436417706
http://Hostname:Port/api/phone/details/4542341122,5336417706,1233442134

During the execution, the URL's parsed as below: 
http://Hostname:Port/api/phone/details/2342341122
http://Hostname:Port/api/phone/details/4542341122

How to use "," (comma) in the request URL?   

Environment

DevTest 10.x versions. 

Resolution

Use the encoded value for "," (comma) as %2C. The URLs should be as shown below in the VSI, REST URI rules, and in the client application where the call was made. 

http://Hostname:Port/api/phone/details/2342341122%2C5436417706
http://Hostname:Port/api/phone/details/4542341122%2C5336417706%2C1233442134
 

Additional Information

The comma (,) is a reserved character per RFC standards https://stackoverflow.com/questions/2366260/whats-valid-and-whats-not-in-a-uri-query.