hope this helps. i don't remember where i found it...
any way, here you are.
#include stdio.h
#include base64.h
unsigned char alphabet[64] = ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/;
int
base64_decode(unsigned char *outbuf, unsigned char *inbuf, int size)
{
i forgot to say that i use the code i send you in https posts.
aleix
__
OpenSSL Project http://www.openssl.org
User Support Mailing List[EMAIL PROTECTED]
Automated List
on 1/30/02 7:03 AM, [EMAIL PROTECTED] purportedly said:
I am having trouble sending Base64 data over HTTPS POST. Does anybody have
any sample code that can encode the Base64 to remove the reserved characters
so that HTTP POST is possible
What's the problem you are having? As far as I know,
There shouldn't be any problems sending Base64 data over HTTP. HTTP doesn't
care what the content-body data looks like (with the exception of the
optional length header for the Chunked transfer-encoding).
Is the problem that you're sending Base64 data as part of an HTML document
over HTTP?