iphone Programming Glossary: urltopublish
Losing a / when converting from NSURL to NSURLRequest http://stackoverflow.com/questions/5412431/losing-a-when-converting-from-nsurl-to-nsurlrequest @ example.host.com NSString urlString NSString stringWithFormat @ SetLeaderUrl.json leader_email @ url @ localEmail urlToPublish NSURL url NSURL alloc initWithScheme @ http host host path urlString NSURLRequest request NSURLRequest alloc initWithURL.. escaping the query values before substituting them in to the string. I just did a little test and found that if I set urlToPublish to http example.com then NSURL would transform it into http example.com . This is because the query value contains special.. except this small set of characters . The function I linked to above does that and you'd use it like this NSString urlToPublish @ http stackoverflow.com URLEscapedString_ch NSString host @ example.host.com NSString urlString NSString stringWithFormat..
|