Demo Discussion
Forum Config Examples Contributions Vulnerabilities
  Discussion forum about ELOG  Not logged in ELOG logo
icon5.gif   Authentication problem with wget and links (text browser), posted by cowden on Wed Aug 8 21:23:59 2012 
    icon2.gif   Re: Authentication problem with wget and links (text browser), posted by Andreas Luedeke on Fri Aug 10 11:47:49 2012 
Message ID: 67306     Entry time: Wed Aug 8 21:23:59 2012     Reply to this: 67307
Icon: Question  Author: cowden  Author Email: christopher.cowden@ttu.edu 
Category: Question  OS: Linux  ELOG Version: 2.9.0-2411 
Subject: Authentication problem with wget and links (text browser) 

Hello,

I'm not able to authenticate to a logbook using my text based browser links, so I've started investigating with wget hoping solving the problem one will lead to a solution for the other.  I've seen some examples on how to use wget to parse logbook entries in this forum, but my attempts keep returning the login page.  Any advice would be helpful and appreciated.  Here are a couple of the command line arguments I've tried:

wget --save-cookies cookie.txt --keep-session-cookies -d "http://hostname/LOGBOOK?unamee=YYY&upassword=XXX" -O elog.txt

wget --save-cookies cookie.txt --keep-session-cookies -d --post-data="redit=&uname=YYY&upassword=XXX&remember=1" -e robots=off "http://hostname/LOGBOOK" -O elog.txt

After these executions, my cookies.txt file remains empty.  Running subsequent command with "--load-cookies=cookies.txt" still points me to the login page.

Many Thanks,

Chris 

 

ELOG V3.1.5-fe60aaf