Thanks Roland.

I'm close enough to hopefully get them to make the required changes at there 
end. 

Cheers

On 7 Oct 2011, at 12:58, Roland King wrote:

> Is that a valid URL? I looked at the old RFC from 1994 and that defines '[' 
> and ']' as 'national' characters and states they must not appear in URLs. 
> 
> So it would seem the online retailer you're dealing with accepts URLs it 
> shouldn't accept, but doesn't accept the properly encoded version of them. Do 
> they have an alternate syntax you can use in requests or are you working with 
> them closely enough you can discuss getting their server to accept the 
> encoded versions of '[' and ']' which are I think the correct way to send 
> them. 
> 
> On Oct 7, 2011, at 7:45 PM, Martin Linklater wrote:
> 
>> 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%5B1821561%5D=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 (Cocoa-dev@lists.apple.com)
>> 
>> 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:
>> http://lists.apple.com/mailman/options/cocoa-dev/rols%40rols.org
>> 
>> This email sent to r...@rols.org
> 

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to