I'm trying to make a bash script that's supposed to log in to a web page and download some information. However I keep getting a html-file telling me that my browser doesn't support cookies. The wget-line I'm trying to use is
Code:
wget --save-cookies cookies.txt --keep-session-cookies --post-data="username=foo&password=bar" "http://form-action-url/
I've tried similar things with cURL too, but without any luck. What should I do to fix the cookies-problem?