For my iphone application I need to make a request to the server with a parameter in the url.
I am new to dev ios applications and I can’t figure it out how to pass a value I set into the url.
I have tried something like this but it says “too many arguments” for the URLWITHString.
How do I write down this in the right way?
NSURLRequest *request = [NSURLRequest requestWithURL:[NSURL URLWithString:@"http://test.localhost/api/request.php?url=%@", passedValue] cachePolicy: NSURLRequestUseProtocolCachePolicy timeoutInterval:15.0];
NSURLConnection *connection = [[NSURLConnection alloc] initWithRequest:request delegate:self];
Thanks in advance,
Nick
EDIT –