Re: conversion from binary string to base64
Date: Wed, 26 Sep 2007 22:36:32 +0200
On Wed, Sep 26, 2007 at 10:16:47PM +0200, Daniel Stenberg wrote:
> libcurl doesn't touch the data it transfers. It sends whatever you ask it
> to send. In url-encoding space is converted to + so I guess that's what
> your receiving end is decoding or trying to decode.
Right - if you use HTTP GET to transfer the string (in many cases, this
will also happen with PUT), then "+" is a reserved character (see RFC
2396). You must escape it for it to actually reach the server. The clean
solution is to replace "+" with "%2b" at the client side!
-- __ _ |_) /| Richard Atterer | GnuPG key: 888354F7 | \/¯| http://atterer.net | 08A9 7B7D 3D13 3EF2 3D25 D157 79E6 F6DC 8883 54F7 ¯ '` ¯Received on 2007-09-26