Skip to content

Instantly share code, notes, and snippets.

@dpobel
Created December 17, 2013 16:04
Show Gist options
  • Select an option

  • Save dpobel/8007340 to your computer and use it in GitHub Desktop.

Select an option

Save dpobel/8007340 to your computer and use it in GitHub Desktop.
REST create session issue
# adapte l'URL et ton password
curl 'http://ezpublish5.loc/api/ezp/v2/user/sessions' -H 'Content-Type: application/vnd.ez.api.SessionInput+json' -H 'Accept: application/xml' --data-binary '{"SessionInput":{"login":"admin","password":"ezpublish"}}'
# adapte l'URL, le nom de la session et l'identifiant
curl 'http://ezpublish5.loc/api/ezp/v2/user/users/14' -H 'Accept: application/vnd.ez.api.User+json' -H 'Cookie: eZSESSID=v4cpacftmk0148pg7ferpstkm4'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment