Win a copy of Java Concurrency Live Lessons this week in the Threads forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Automating downloads from web page  RSS feed

 
Domenico Fusco
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to download files from a web page automatically without having to click on the link. Will java enable me to view a web page and send the request out. What should I be looking for.

I have only recently started to learn Java

Thank you
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No browser is going to allow you to force a file onto the client's machine.
You can request that file be opened 'inline' which will cause the browser to check for a registered app and open the file with it (PDF, Excel, etc).

Otherwise, users will be preseneted with a dialog box that allows them to choose where the downloaded file should go - or not to download at all.

This has nothing to do with Java or whatever else you're running on the server.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!