urlFromString creating bad URLs with string containing []
urlFromString creating bad URLs with string containing []
- Subject: urlFromString creating bad URLs with string containing []
- From: Martin Linklater <email@hidden>
- Date: Fri, 07 Oct 2011 12:45:22 +0100
Hi - I'm writing an iOS client for an online retailer and I'm having trouble with the way NSURL encodes square brackets. I'm building an http request using a string then converting it to a NSURL before calling [NSData dataWithContentsOfURL].
The troblesome piece of the http path is: &prices[1821561]=1
This gets converted to this in NSURL: &prices[1821561]=1
I don't know much about HTTP formatting but is there a way around this problem ? The Android version of our App is working fine since we pass the request in with the square brackets in-tact. How can I do this with NSURL ?
Thanks for any help you can give._______________________________________________
Cocoa-dev mailing list (email@hidden)
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:
This email sent to email@hidden