Monday, 29 May 2017

How to decode the received URL

I've created the API sever by following these Steps.

And then I made an ios APP (swift3.0) to send HTTP request to it.

Because of the non-ASCII words in the url, I have to encode it before I send it.

But here comes a problem, I have no idea how to get it decoded at my API sever.

Is it possible to not encode the non-ASCII in swift, but also send the HTTP request? (As I know, it is impossible by using NSMutableURLRequest(url: url))

Or where should I add the decoding code in my API?



via Jake

No comments:

Post a Comment