Archived Forum Post

Index of archived forum posts

Question:

Create Directory on Web Server via HTTP?

Sep 25 '12 at 11:19

We have been reviewing your HTTP ActiveX (VB6) component and documents on your web site. I have one question regarding the ability to upload an entire directory (folder).

For example: Folder -> C:Temp that has several files.

We would like to be able to upload (create) the Folder “Temp” on the server, then recursively upload each file. We know how to get the list of files and perform an upload in a loop etc, but how would we Upload/Create the Actual Folder “Temp”?

Would we need to use another product in conjunction? We do not want to use FTP or SFTP for firewall reasons. That being said, we could be convinced to use SFTP (definitely not FTP), but that would be a future decision.


Answer

The only way I know of to create a directory on the web server via HTTP is using WebDAV. See this here:

http://msdn.microsoft.com/en-us/library/exchange/ms878641%28v=exchg.65%29.aspx

For a VB6 WebDAV example using Chilkat HTTP, see this:

http://www.example-code.com/vb/http_webdav_propfind.asp