Laughing1599 / cocoa-rest-client

Automatically exported from code.google.com/p/cocoa-rest-client
Other
0 stars 0 forks source link

Parameters are not being url encoded correctly #32

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

I'm having the following issue:

I need to pass via POST method a param value that contains the plus sign 
character (+) and/or the equal sign character (=).

A) If I put those characters directly on my Param Value, those values are 
posted without being url encoded
Example:
I type: avalue+
What's being sent: avalue+
What's needed: avalue%2B

B) But if I put those characters urlencoded, the % sign is urlencoded!
Example:
I type: avalue%2B
What's being sent: avalue%252B  (%25 is the % sign url encoded)
What's needed: avalue%2B

I tried with and without the application/x-www-form-urlencoded content type and 
the result is the same.

I'm using version 1.3.5 (10) on OS X 10.8.3

Thanks!!

Original issue reported on code.google.com by tato.pat...@gmail.com on 22 May 2013 at 2:18

GoogleCodeExporter commented 8 years ago
I probably just posted an duplicate of this.
https://code.google.com/p/cocoa-rest-client/issues/detail?id=35&sort=-id
Didn't find this issue until after.

Can confirm this bug.

Original comment by nassoZe...@gmail.com on 24 Jun 2013 at 8:29

GoogleCodeExporter commented 8 years ago
This will be fixed in the next release, I wrote a more detailed explanation in:
https://code.google.com/p/cocoa-rest-client/issues/detail?id=35

Original comment by mike.mat...@gmail.com on 29 Jun 2013 at 5:41

GoogleCodeExporter commented 8 years ago

Original comment by mike.mat...@gmail.com on 29 Jun 2013 at 8:35