Anyone know if Wget can be made to pass a userid and a password in a form in order to get in to a site and grab the pages? (no I'm not trying to crack anything... just trying to automate a process) -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 12/03/03 18:32 + +----------------------------------------------------------------------------+ "The attention span of a computer is only as long as its electrical cord."
Bruce Marshall wrote:
Anyone know if Wget can be made to pass a userid and a password in a form in order to get in to a site and grab the pages?
(no I'm not trying to crack anything... just trying to automate a process)
wget -r --http-user=user --http-passwd=password http://www.xxx.yyy/zzz/index.html The one thing I never quite figured out was how to limit the recursive levels, they always seemed to do other tha I expected. Regards Sid. -- Sid Boyce .... Linux Only Shop.
Sid Boyce wrote:
wget -r --http-user=user --http-passwd=password http://www.xxx.yyy/zzz/index.html The one thing I never quite figured out was how to limit the recursive levels, they always seemed to do other tha I expected.
The -l option worked for me: i.e. I used to use -l 7 to stop at depth 7. Bruce Marshall wrote:
If the form is on a web page, you'll probably need more work.
The form is a web page..... and I've tried the user and passwd stuff and get an 'unknown authentication scheme' error from wget.
You could try logging in with mozilla and using wget with the --load-cookies .mozilla/path/path/cookies.txt option. It might work. -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
Bruce Marshall wrote:
Anyone know if Wget can be made to pass a userid and a password in a form in order to get in to a site and grab the pages?
(no I'm not trying to crack anything... just trying to automate a process)
If the form is a standard http-authentication popup you can use the --http-user or --http-passwd options. The details are in the man pages (man wget). This is fairly common for 'internal' sites. If the form is on a web page, you'll probably need more work. -- JDL Non enim propter gloriam, diuicias aut honores pugnamus set propter libertatem solummodo quam Nemo bonus nisi simul cum vita amittit.
On Thu December 4 2003 02:17 am, John Lamb wrote:
Bruce Marshall wrote:
Anyone know if Wget can be made to pass a userid and a password in a form in order to get in to a site and grab the pages?
(no I'm not trying to crack anything... just trying to automate a process)
If the form is a standard http-authentication popup you can use the --http-user or --http-passwd options. The details are in the man pages (man wget). This is fairly common for 'internal' sites.
If the form is on a web page, you'll probably need more work.
The form is a web page..... and I've tried the user and passwd stuff and get an 'unknown authentication scheme' error from wget. Thanks... -- +----------------------------------------------------------------------------+ + Bruce S. Marshall bmarsh@bmarsh.com Bellaire, MI 12/04/03 09:56 + +----------------------------------------------------------------------------+ " Friends help you move. Real friends help you move bodies."
participants (3)
-
Bruce Marshall
-
John Lamb
-
Sid Boyce