File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

uploading a file programmatically

 
Gayatri Sinha
Ranch Hand
Posts: 34
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

we need to upload a file to a website regularly. This website has a login, password and then a button to browse the file and a upload button to upload the file.

Have been doing this manually till now, is it possible have a program that could upload the file to the website?

Thanks,
- Gayatri
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could use HttpUnit (on SourceForge) to navigate through the login, and then use Jakarta Commons HttpClient to do the file upload.
 
Adam Richards
Ranch Hand
Posts: 135
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or, if the Web site has an FTP server running, use the Jakarta Commons FTP client class.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic