cURL / Mailing Lists / curl-library / Single Mail

curl-library

Uploading and Appending a file

From: neha bhagat <nehabhagat.4_at_gmail.com>
Date: Thu, 21 May 2009 14:58:08 +0530

Hi All,
I have succedded in appending a file using libcurl library and apache
server.All you need to do is add CURLOPT_APPEND and add appropriate range
using CURLOPT_RANGE option.
Also you need to add following lines to your apache configuration file
# Configuration for mod_put
<IfModule mod_put.c>
    <Location />
        PUT_EnablePut On
        PUT_EnableDelete Off
        PUT_EnableAppend On
         #PUT_BlockSize 2048
         #PUT_DirMask 777
         #PUT_FileMask 007
        AuthType Basic
        AuthName "Web publishing"
         AuthUserFile /etc/httpd/conf/passwd
       # AuthGroupFile /usr/local/apache2/conf/group
        <Limit PUT>
          require valid-user
        </Limit>
    </Location>
</IfModule>
# End of mod_put.

Regards,

Neha
Received on 2009-05-21