Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ASIHTTPRequest problem with parameters using 3G conneciton (Fine with Wifi)
- -(NSString *) encodeString:(NSString *) string
- {
- NSString * returnString = (NSString *)CFURLCreateStringByAddingPercentEscapes(
- NULL,
- (CFStringRef) string,
- NULL,
- (CFStringRef)@"!*'();:@&=+$,/?%#[]",
- kCFStringEncodingUTF8 );
- return [returnString autorelease];
- }
- // Setup the url we need to make the request to the sharkscope API
- NSString * urlString = [NSString stringWithFormat: @"%SERVICEADDRESSHERE?Username=%@&Password=%@",
- encodedUserName, m_md5Key];
- NSURL * url = [NSURL URLWithString:urlString];
- request = [[ASIHTTPRequest requestWithURL:url] retain];
- Username=Fred.Bloggs%40wanadoo.fr
- Username=Fred.Bloogs%2540wanadoo.fr
Add Comment
Please, Sign In to add comment