cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: conversion from binary string to base64

From: Daniel Stenberg <daniel_at_haxx.se>
Date: Mon, 24 Sep 2007 23:12:57 +0200 (CEST)

On Mon, 24 Sep 2007, Marco Antonio wrote:

> I'd like to know, if exists a way to pass binary data by CURLOPT_POSTFIELDS
> converting firstly to a base64 data.

Sure! You first convert/encode your data the way you like it, then you pass it
on to CURLOPT_POSTFIELDS. Optionally you also use CURLOPT_POSTFIELDSIZE to set
the size of the data unless it is indicated with a trailing zero byte.

-- 
  Commercial curl and libcurl Technical Support: http://haxx.se/curl.html
Received on 2007-09-24