Login and Logout Confluence using Curl


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

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'"

No logout for confluence?

Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Kesha Thillainayagam
Posted Friday in Confluence

We want to hear how your non-technical teams are using Confluence!

Hi Community! Kesha (kay-sha) from the Confluence marketing team here! Can you share stories with us on how your non-technical (think Marketing, Sales, HR, legal, etc.) teams are using Confluen...

274 views 11 10
Join discussion

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you