I am working with an API whose URL has the structure :-
http://abcd.efgh.com/authenticate?login={"username":"abcd","password":"dbca"}
The URL mentioned above works and gives an appropriate success response when sent via Postman
When I try to send a URL request with the URL
above :-
let string = "http://abcd.efgh.com/authenticate?login={"username":"abcd","password":"dbca"}"
guard let url = URL(string: string) else { return nil }
the URL is being sent as :-
http://abcd.efgh.com/authenticate?login=%7B%22username%22:%22abcd%22,%22password%22:%22dbca%22%7D
which the backend service does not recognize.
Please advice if there is a way to perform this URL request without the URL being percent encoded ? Preferably without using any third party library