The aim is to enter different accounts at the same time. With lynx this is possible using files for each account with the -cfg=~/file argument.
wget has a .wgetrc file that can be configured with:
cookies = on
load_cookies = ~/cookies.txt
save_cookies = ~/cookies.txt
But unlike lynx you don't have the option to invoke it with settings for multiple profiles, it simply loads when wget is started with a single cookie for the same server.
I use the script below that should create and maintain cookies without the need to have the .wgetrc file, but for some reason that I don't know is only successful with .wgetrc.
#!/bin/bash
LOGIN='login=Account&pass=12345678'
wget -qO- --save-cookies cookies.txt \
--keep-session-cookies \
--body-data="$LOGIN" \
--method=POST \
http://example.net/?sign_in=1
# after login
wget -qO- --load-cookies cookies.txt \
http://example.net/user
Based on this information I ask; _Is wget capable of logging in from multiple accounts on the same server? If yes, how?
Lynx is perfectly capable of doing this, but I didn't want to have to use it.
