NSURLConnection substitutes characters?
NSURLConnection substitutes characters?
- Subject: NSURLConnection substitutes characters?
- From: email@hidden
- Date: Sun, 13 Jul 2008 02:17:33 +0000
Hi
I wrote a class (PHPInvocation) that handles all the nitty gritty details of preparing NSURLRequests, NSURLConnections etc for calls to PHP scripts, but have run across this nasty bug. What's happening is that somewhere between the creation of an NSURLConnection and the target PHP script, "+" characters in base64 data get converted to spaces.
I NSLog the data immediately before calling [NSURLConnection sendSynchronousRequest:...] and all the "+" signs are intact, but when the PHP script extracts the data from the $_POST, all the "+" signs have been converted to spaces.
I don't know if this is a Cocoa problem or a PHP problem but does anyone know if or why Cocoa would do this conversion? If it is a Cocoa "feature" how would I make it preserve the data exactly as it's given?
Thanks for any help.
_______________________________________________
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