• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
NSURLConnection substitutes characters?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: NSURLConnection substitutes characters?
      • From: Stefan Arentz <email@hidden>
    • Re: NSURLConnection substitutes characters?
      • From: Bill Bumgarner <email@hidden>
  • Prev by Date: importing sqlite data into a core data "database"
  • Next by Date: Re: NSURLConnection substitutes characters?
  • Previous by thread: Re: Setting Up Socket Streams
  • Next by thread: Re: NSURLConnection substitutes characters?
  • Index(es):
    • Date
    • Thread