How to pass user agent string in API


I am trying to pass user string in API to run test on private WPT but getting error.
Using below API for the same:

API :: http://ServerIP/runtest.php? (iPad; CPU OS 11_1 like Mac OS X) AppleWebKit/604.3.5 (KHTML, like Gecko) Version/11.0 Mobile/15B93 Safari/604.1&time=10&k=APIKey

Please let me know how can I pass user string for test.


You need to URL-encode the string if it is passed as query parameters (just like the URL is encoded).