I want to write a bash script that will notify me about changes on a trac wiki timeline. Unfortunately I can't "login" (it needs cookie for next logins).
wget http://someserver.com/trac/xxx/login \
--save-cookies=cookies --keep-session-cookies
wget http://someserver.com/trac/xxx/login \
--load-cookies=cookies \
--save-cookies=cookies.new --keep-session-cookies\
--post-data=user=viroos&password=myPassword
I get:
Error 400: Bad Request
I also tried --user --password options:
wget --no-check-certificate --user viroos --password myPassword\
https://someserver.com/trac/xxx/timeline?ticket=on&changeset=on&milestone=on&wiki=on&blog=on&max=50&daysback=90&format=rss
But this downloads only the login page.
What am I doing wrong?