I'm having some difficulties constructing a URL from a baseURL and a
relativeURL when the relativeURL starts with a question mark:
NSURL *baseURL = [NSURL URLWithString: @"http://www.test.com/test/"];
NSString *relativeString = @"?query=test";
NSURL *url = [NSURL URLWithString: relativeString relativeToURL: baseURL];
This results in the following url:
?query=test -- http://www.test.com/test/
While I want it to be:
http://www.test.com/test/?query=test
I can just generate the whole URL at once, but I was wondering why I get this
behavior?
Thanks,
- Koen.
_______________________________________________
Cocoa-dev mailing list ([email protected])
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [email protected]