Description
Moin does not let the wget program login unless it lies about the user agent.
Further, this seems to be entirely undocumented.
I am trying to use moin as an easy user interface for humans and then driving automated processes based on the data collected. This bug has been extremely annoying.
Steps to reproduce
wget --load-cookies cookies.text --post-data 'action=login&name=YourName&password=yourpassword&login=Login' --save-cookies cookies.txt --keep-session-cookies http://moinmo.in ... HTTP request sent, awaiting response... 403 FORBIDDEN 2012-02-10 16:17:59 ERROR 403: FORBIDDEN.
Using '-U anything' fixes the problem. Moin is specifically rejecting wget. It's not just on login either, moin rejects wget's request for any page requiring a login.
Example
See above.
Component selection
- general
Details
Workaround
Using '-U anything' fixes the problem. Moin is specifically rejecting wget
Discussion
It is rejecting all configured ua_spiders, see HelpOnConfiguration.
Instead of using wget you may be want to look at xmlrpc, e.g.MoinAPI/Examples#xmlrpc
wiki-xmlrpc-extensions is a collection of tools I often use.
Plan
- Priority:
- Assigned to:
- Status: