Question
I recently switched to using template login (from Apache login) on my TWiki and ran into a problem. I have several scripts that update the information on my TWiki using curl. When using Apache login, that worked very well since you can specify user name and password to curl, but it ceased working when I switched to template login. Does anyone know how to script access (both read and edit/save) to TWiki when using template login?
Thanks.
Environment
--
DavidBright - 01 Sep 2006
Answer
If you answer a question - or someone answered one of your questions - please remember to edit the page and set the status to answered. The status selector is below the edit box.
I don't think there's any way to do that. Curl passes the username and password in HTTP headers, and by the time TemplateLogin gets a look in that info has probably gone. If you can find it in CGI, then it wouldn't be hard to use it.
Note that if you have an existing session, you can pass the session ID in the TWIKISID form parameter.
--
CrawfordCurrie - 04 Oct 2006