LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 03-29-2005, 01:11 PM   #1
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Rep: Reputation: 30
get all web pages from an ethernet switch


How to get all web pages from an ethernet switch accessible from a web browser?
The ethernet switch is accessible from a web browser at the http intranet address
192.168.1.48.
Then enter the user id and password at the login screen.
Afterwards, the web browser will display different screens depend on which menu is clicked.
Without clicking each page manually and using "Save page as" button to save the page as html files, is there a way to write a program to get every screen/pages?
 
Old 03-29-2005, 01:29 PM   #2
aluser
Member
 
Registered: Mar 2004
Location: Massachusetts
Distribution: Debian
Posts: 557

Rep: Reputation: 43
how about hell. that smiley is a : followed by a p.

Last edited by aluser; 03-29-2005 at 01:30 PM.
 
Old 03-29-2005, 02:01 PM   #3
powah
Member
 
Registered: Mar 2005
Distribution: FC, Gentoo
Posts: 276

Original Poster
Rep: Reputation: 30
I tried all these:
wget -r http://userw@192.168.1.48
wget -m http://userw@192.168.1.48
wget -r http://userw@192.168.1.48
wget -r --http-user=user --http-passwd=pw http://192.168.1.48
wget -r --http-user=user --http-passwd=pw --proxy-user=user --proxy-passwd=pw http://192.168.1.48

They does not get pass the login screen.

--17:08:41-- http://192.168.1.48/
=> `192.168.1.48/index.html'
Connecting to 192.168.1.48:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

[ <=> ] 467 --.--K/s

Last-modified header invalid -- time-stamp ignored.
17:08:41 (556.84 KB/s) - `192.168.1.48/index.html' saved [467]

Loading robots.txt; please ignore errors.
--17:08:41-- http://192.168.1.48/robots.txt
=> `192.168.1.48/robots.txt'
Connecting to 192.168.1.48:80... connected.
HTTP request sent, awaiting response... 404 Not Found
17:08:41 ERROR 404: Not Found.

--17:08:41-- http://192.168.1.48/html/start0.html
=> `192.168.1.48/html/start0.html'
Connecting to 192.168.1.48:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

[ <=> ] 792 --.--K/s

Last-modified header invalid -- time-stamp ignored.
17:08:41 (761.26 KB/s) - `192.168.1.48/html/start0.html' saved [792]

--17:08:41-- http://192.168.1.48/html/Hlogo.html
=> `192.168.1.48/html/Hlogo.html'
Connecting to 192.168.1.48:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

[ <=> ] 222 --.--K/s

Last-modified header invalid -- time-stamp ignored.
17:08:41 (284.14 KB/s) - `192.168.1.48/html/Hlogo.html' saved [222]

--17:08:41-- http://192.168.1.48/html/Hlogin_Layer3R.html
=> `192.168.1.48/html/Hlogin_Layer3R.html'
Connecting to 192.168.1.48:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

[ <=> ] 10,752 --.--K/s

Last-modified header invalid -- time-stamp ignored.

Any ideas?

Quote:
Originally posted by aluser
how about hell. that smiley is a : followed by a p.

Last edited by powah; 03-29-2005 at 04:38 PM.
 
  


Reply



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
can not browse web pages sharpblade Debian 4 06-16-2005 11:12 AM
Switch ethernet- to wireles - to ethernet? pterandon Linux - Networking 0 05-06-2005 04:28 PM
ADSL Router Web configuration pages appears instead of Personal Web Server Pages procyon Linux - Networking 4 12-20-2004 05:44 PM
some web pages are not web opening in linux emailssent Linux - Networking 4 09-19-2004 06:28 AM
Can't access Linux web server web pages from LAN client jaydave Linux - Networking 4 03-16-2003 02:38 AM

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

All times are GMT -5. The time now is 02:23 PM.

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