Results 1 to 2 of 2
- 09-22-2009, 09:00 PM #1
Member
- Join Date
- Sep 2009
- Posts
- 1
- Rep Power
- 0
Doubt regarding Directory Upload using HTTPclient3.1 library
Hello everyone,
I am new to using Apache HTTP Client3.1 library. I understood how to upload a file in specified location using Apache commons file- upload ,but i was unable to understand how to upload directories using Apache commons file upload . For ex: You see, the directory contains some files in it as well as other directories. Basically this directory also has sub-directories and files.
Can anyone suggest me how to proceed further.
Thanks & Regards,
Deepthi
- 09-30-2009, 08:33 PM #2
the http-client only handles standard HTTP methods. such as GET, POST, PUT. for more advanced features like "mkdir" on the server, you could create an administrative servlet (like on a different URL) /myapp/createFolder?path=aDir and your client app would need to know to call that if needed (such as the directory did not exist).. and then use the commons-httpclient facility to PUT a file.
Another idea, there might be to see if some existing API projects that do this already in a higher level protocl, such as WebDAV.
Similar Threads
-
doubt
By Chris555 in forum NetworkingReplies: 0Last Post: 08-05-2009, 02:58 PM -
Tell me jar file for library library org.bouncycastle.cms
By 82rathi.angara in forum New To JavaReplies: 10Last Post: 09-09-2008, 05:11 AM -
How to create a directory using the library java.io
By bachtoutou in forum New To JavaReplies: 3Last Post: 05-23-2008, 10:08 PM -
doubt
By shaju_inspira in forum Sun Java Wireless ToolkitReplies: 0Last Post: 01-18-2008, 08:38 AM -
doubt in jms
By veena in forum Enterprise JavaBeans (EJB)Replies: 2Last Post: 01-05-2008, 01:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks