This question is not specific to iOS
but since I am developing the application in iOS
, I see this issue.
I create the URL
as
NSUserDefaults *userDefaults = [NSUserDefaults standardUserDefaults];
NSString *transactionsUrl = [NSString stringWithFormat:@"%@/%@/%@/%i/%i?categoryGroup=%@",
appUrl, @"rest/transactions", [userDefaults valueForKey:kMemberId], year, month, [categoryGroup stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
NSLog(@"getting transactions for URL:%@", transactionsUrl);
My query parameter categoryGroup
could be one of the following values
A & B
, B & C
,
what I see on `iOS client logs is
2014-12-31 21:38:44.654 myapp-ios[41275:70b] getting transactions for URL:https://myapp.com/rest/transactions/78f7f8a4-a8c9-454a-93a8-6633a1076781/2014/12?categoryGroup=A%20&%20B
But on server, I see
categoryGroup=A
so the entire queryParameter is not received on the server.
What could be the potential issue?