LinuxQuestions.org
Review your favorite Linux distribution.
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, 09: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, 10:28 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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-17-2003, 11:01 PM   #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, 07: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 12:40 AM
which FTP program to publish a web page ruwach Linux - Software 2 08-07-2004 02:19 AM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM
Web Page picture loading program for Linux heathpitts Linux - Software 5 03-02-2003 07:04 PM
Need a graphics based web page program OmegaWarXIII Linux - Newbie 5 06-21-2001 01:47 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration