vimalmishra09 / oauthconsumer

Automatically exported from code.google.com/p/oauthconsumer
0 stars 0 forks source link

When POSTing, ampersands (&) are always considered as delimiters for parameter key/value pairs #5

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. POST e.g. XLM data in the HTTP body
2. have some encoded XML special characters in there (like < and > and so 
on)
3. launch the request

What is the expected output? What do you see instead?
Expected: XML with encoded chars goes straight through
Instead: "*** Terminating app due to uncaught exception 'NSRangeException', 
reason: '*** -
[NSCFArray objectAtIndex:]: index (1) beyond bounds (1)"

What version of the product are you using? On what operating system?
//  NSMutableURLRequest+Parameters.m
//
//  Created by Jon Crosby on 10/19/07.

Please provide any additional information below.
- The code that's in question resides in the - (NSArray *)parameters method of 
NSMutableURLRequest+Parameters.m.
- & character is considered a delimiter for key/value pairs which is not always 
the case (as for 
instance with XML data where & is used to escape special characters)

Original issue reported on code.google.com by neooscom...@gmail.com on 6 Oct 2009 at 10:41

GoogleCodeExporter commented 8 years ago
What about this issue? Did anybody fixed it?

Original comment by ezequiel.aceto on 10 Dec 2012 at 5:58