Skip to content

Instantly share code, notes, and snippets.

@tomgross
Last active August 25, 2016 08:02
Show Gist options
  • Save tomgross/da912087a673c20e7cae688e490a89b9 to your computer and use it in GitHub Desktop.
Save tomgross/da912087a673c20e7cae688e490a89b9 to your computer and use it in GitHub Desktop.
Extract authenticator in Zope / Plone form
#!/bin/sh
curl -u admin:admin http://localhost:8080/Plone/portal_quickinstaller/manage_installProductsForm -q | grep -oP '_authenticator.*value="\K[a-z0-9]*' | head -1
#!/bin/sh
TOKEN=`curl -u admin:admin http://localhost:8080/Plone/portal_quickinstaller/manage_installProductsForm -q | grep -oP '_authenticator.*value="\K[a-z0-9]*' | head -1`
curl -u admin:admin http://localhost:8080/Plone/portal_quickinstaller/manage_installProductsForm -p products%3Alist=productA&products%3Alist=productB&reinstallProducts%3Amethod=Reinstall&_authenticator=$TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment