cURL / Mailing Lists / curl-users / Single Mail


Re: is it possible to create directory structure during file upload (http)

From: Dan Fandrich <>
Date: Mon, 31 Mar 2008 14:23:49 -0700

> On Sun, Mar 30, 2008 at 7:53 PM, Anshu Mishra <> wrote:
> Is it possible to create the directory structure on the server , while
> uploading the
> files using http?
> I tried uploading the files using http using the username/pwd
> combination as expected by the server.
> If the directory exists, it is able to upload while, if it doesn't
> exist, any try of uploading results in
> 403 (forbidden ) error.
> Is is possible to do somehow without ftp access?

curl supports the --ftp-create-dirs option to do this for FTP and SFTP, but
not for HTTP. It's probably a reasonable extension if you wanted to
code that support in.

>>> Dan

--              The web change of address service
          Let webmasters know that your web site has moved
Received on 2008-03-31