how to pass arguments to GET method in RESTfull webservice

android, java, rest, web-services

Solution

To pass parameters in HTTP GET you should use a `?` delimiter. Such as

https://mywebsite.com/user/login?username=bob&password=123
https://mywebsite.com/user/login?paramname1=value1&paramname2=value2

Make sure to always use `https` with any sensitive data. You may also need to escape/encode both username and password to allow extended ASCII. If you need to support UNICODE you should consider using a POST request.

Problem

I have to pass `UserName` and `password` as arguments into `GET` method for validation.after processing I need to get response.so how can I pass value into `RESTful` webservice `GET` method?

Original source