cURL / Mailing Lists / curl-library / Single Mail

curl-library

Re: Fw: Posting a file with libcurl

From: Lars Nilsson <chamaeleon_at_gmail.com>
Date: Tue, 21 Jul 2009 10:19:56 -0400

>> On Mon, Jul 20, 2009 at 4:09 PM, Patrick Demers<p_dem_at_hotmail.com> wrote:
>>>
>>> Hi,
>>> i have a c++ project where i post a file using curl_form. When my file
>>> path contain only non-unicode char, the file post correctly, but when i
>>> have
>>> unicode char in the file path, it does not work. Anyone have an idea of
>>> how
>>> i can post a file with unicode in the filepath ?
>>
>> Are you able to use fopen or STL's ifstream to open the file, using
>> the Unicode name?
>>
>> Lars Nilsson

On Mon, Jul 20, 2009 at 11:07 PM, Patrick Demers<p_dem_at_hotmail.com> wrote:
> Hi,

> yes i can open the file with the unicode name.

Please do not top-post?

Besides questioning the use of a CComBSTR being passed as an argument
to curl_formadd, have you checked the curl return value of the
function that fails? I'm just guessing curl_easy_perform() fails, due
to a lack of details in your first post. A complete, standalone
program that fails is also pretty handy, along with a description of
version of relevant software (curl version, OS, development
environment..) [1]

Lars Nilsson

[1] http://catb.org/esr/faqs/smart-questions.html
Received on 2009-07-21