GET REST Call with query parameters in http-connector

Hi All,

I am trying to make REST web service using GET method in http-connector. and also I have a requirement to send query parameter and values.
Currently, I am creating the URL with all required query parameter and using in http-connector.

Also, when I access the URL directly in chrome browser, it gives me correct response whereas using camunda I am gettting following error.

ErrorIllegal character in query at index 100: http://XXX.XXX.XXX.XX/service/v4_1/rest.php?method=login&input_type=JSON&response_type=JSON&rest_data={“user_auth”:{“user_name”:“admin”,“password”:“amsked”}}

Can anyone pls post any example how to achive the same.

some characters in your URL are not URL encoded, so your URL can not be parsed correctly by the server.
you should replace

{“user_auth”:{“user_name”:“admin”,“password”:“amsked”}}

with

%7B%E2%80%9Cuser_auth%E2%80%9D%3A%7B%E2%80%9Cuser_name%E2%80%9D%3A%E2%80%9Cadmin%E2%80%9D%2C%E2%80%9Cpassword%E2%80%9D%3A%E2%80%9Camsked%E2%80%9D%7D%7D

Thanks mate. it helped me.