views:

121

answers:

0

Hi

I want to send a special character in NSURL my code is as follows

NSString *theURLString = @"http://mydomain.com/Search.asmx/Search?SearchType=Property&Format=STANDARD-XML&QueryType=DMQL2&Class=4&Query=(79=|A),(77=10000000-100000000)";

NSURL *theURL=[NSURL URLWithString:theURLString];

I am getting problems with comma sign ",". Output i am getting is as follows.

http://mydomain.com/Search.asmx/Search?SearchType=Property&Format=STANDARD-XML&QueryType=DMQL2&Class=4&Query=%2879=|A%29,%2877=10000000-100000000) 2009-12-23 12:17:24.763 ronLogin[34234:207] Connection failed! Error - bad URL (null)

I do not want to encode this string as the server wants the URL as is the server not accepting the encoded string and giving me errors.

Is there a way to send comma "," in url ??

Thanks