http://en.wikipedia.org/wiki/User:ClueBot/Source provides a good base for cookie storage.
Soxred
On Oct 7, 2008, at 11:52 AM [Oct 7, 2008 ], Roan Kattouw wrote:
javi bueno schreef:
Thanks for the response, but I was logged in. I think the problem is the loggin cookies. I don't know how to pass it. The parameter I am passing are the following ones :
- action= query
- prop = info|revisions
- intoken = edit
- titles = Main_Page
Do I must to pass another parameter? Which is it?
You have to pass the cookies, which aren't parameters. The CURL documentation probably has information how to fetch and pass cookies using CURL. The idea is that when you log in with action=login , you get a set of cookies along with the usual API response. You have to pass those cookies back in the action=query request and all subsequent requests that require you to be logged in.
Roan Kattouw (Catrope)
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l