cURL / Mailing Lists / curl-library / Single Mail

curl-library

post file

From: jafrif <jafrif_at_yahoo.com>
Date: Tue, 4 Mar 2003 10:36:17 -0800 (PST)

hello,

thanx alot for such a quick reply for my questions.
i now again with the problem, i want to ask that how
to post file store in particular location say /tmp/abc
is the file i want to post.

/* Add simple file section */
 curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME,
"img1",
CURLFORM_FILE, "abc", CURLFORM_END);

i want to write code as
/* Add simple file section */
 curl_formadd(&formpost, &lastptr, CURLFORM_COPYNAME,
"img1",
CURLFORM_FILE, "/tmp/abc", CURLFORM_END);

but it does not work..

plz help me

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

-------------------------------------------------------
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger
for complex code. Debugging C/C++ programs can leave you feeling lost and
disoriented. TotalView can help you find your way. Available on major UNIX
and Linux platforms. Try it free. www.etnus.com
Received on 2003-03-04