How to pass user agent string in API

Hi,

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?url=https%3A%2F%2Fgoogle.com%2Fweather%2Fhourbyhour%2Fl%2FUSGA0028%3A1%3AUS&f=json&runs=1&fvonly=1&timeline=1&video=1&keepvideo=1&debug=1&where=us-east-1-group&browser=Chrome&location=us-east-1:Chrome.Cable&mobile=on&mobileDevice=iPadMini2&uastring=Mozilla/5.0 (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.

Thanks

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