Skip to content

Instantly share code, notes, and snippets.

@tomgross
Last active Aug 25, 2016
Embed
What would you like to do?
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