Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Login and Logout Confluence using Curl

Luis Mayora
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 17, 2013

Hi,

I would like to see examples on how to login/logout on Confluence 4.3.x.

I already have it for JIRA working...

curl -u #{@system['user']}:#{@system['pass']} --cookie-jar cookies-#{@system['product']}.txt \"#{@system['loginurl']}\" --head

 curl -b cookies-#{@system['product']}.txt -c cookies-#{@system['product']}.txt -X DELETE \"#{@system['logouturl']}\" --head

2 answers

2 votes
jordan help
October 9, 2013

I don't know if I'm too late to help, but here is a login curl example:

curl http://<confluence-server>/dologin.action --cookie /tmp/cookie.cook --cookie-jar /tmp/cookie.cook --data "os_username=youruser" --data "os_password=yourpassword" --data "formname=loginform" --data "login='Log In'"

0 votes
Luis Mayora
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
July 24, 2013

No logout for confluence?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events