1

I am trying to encode a URL request parameter in order to avoid using reserved characters. The main reason for this is that I have to send a POST request to an API that receives a data from an encrypted URL parameter, so I want to avoid sending a request where this parameter has reserved characters. I been searching for some method an I found this.

[parameterData stringByAddingPercentEncodingWithAllowedCharacters: [NSCharacterSet URLHostAllowedCharacterSet]]

But it does not encode all characters.

1
  • URLQueryAllowedCharacterSet Commented Oct 31, 2019 at 5:24

0

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.