LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 04-17-2003, 10:58 PM   #1
mrtwice
Member
 
Registered: Feb 2002
Distribution: xubuntu 8.10
Posts: 225

Rep: Reputation: 31
using a small java program to download a web page


I would like to be able to provide a program a string representing a URL and have that program go out to the INTERNET, grab the specified file, and save it locally to my hard drive. I am sure this is not very complicated but I am not sure where to start. My Java book didn't really cover it. Thanks in advance.
 
Old 04-17-2003, 11:28 PM   #2
DavidPhillips
Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,155

Rep: Reputation: 56
I'm not sure if this will be what you want, because it's not using java. I would use wget.

wget -r websiteurl


see this for details

man wget
 
Old 04-18-2003, 12:01 AM   #3
JIV
Member
 
Registered: Feb 2003
Location: India
Distribution: RedHat 9.0
Posts: 90

Rep: Reputation: 15
if u want to study the code ...
i mean to know how to write a code in Java to get a file from web
then go "planet-source code "
search there otherwise i 'll give u the code
 
Old 04-23-2003, 08:44 AM   #4
acjt
Member
 
Registered: Dec 2002
Location: Australia
Distribution: Gentoo
Posts: 161

Rep: Reputation: 30
Start with the java.net packages. There's sure to be a chapter in your 'book'.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Web page download/backup Hexane Linux - Software 2 01-20-2005 01:40 AM
which FTP program to publish a web page ruwach Linux - Software 2 08-07-2004 03:19 AM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 11:29 PM
Web Page picture loading program for Linux heathpitts Linux - Software 5 03-02-2003 08:04 PM
Need a graphics based web page program OmegaWarXIII Linux - Newbie 5 06-21-2001 02:47 PM


All times are GMT -5. The time now is 07:39 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration