• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

uploading a file programmatically

 
Gayatri Sinha
Ranch Hand
Posts: 34
  • 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
Posts: 42967
73
  • 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
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic