CFStringRef encodedValue = CFURLCreateStringByAddingPercentEscapes(kCFAllocatorDefault,
value,
NULL,
(CFStringRef)@":/?#[]@!$&'()*+,;=",
kCFStringEncodingUTF8);
输入文件中我的请求参数的格式:"request-params":[ { "webLoginId":"2597171", "webGroupId":"null", "email":"swathi.chukkala@google.com", " emailOrder":"true", "emailQuote":"true" } ],空值没有被编码形成一个 URL 来发起一个 GET 请求。如何为 GET 请求编码空值?