Re: curl -X POST to config.xml fails with "No valid crumb was included in the request"

2020-11-05 Thread sebb
Thanks, that worked. FTR, there is a simple link to get to the API token creation page: https://ci-builds.apache.org/me/configure On Thu, 5 Nov 2020 at 02:07, Matt Sicker wrote: > > You need to generate an API token for your user or generate a CSRF token > (crumb) for your normal password. > >

Re: curl -X POST to config.xml fails with "No valid crumb was included in the request"

2020-11-04 Thread Matt Sicker
You need to generate an API token for your user or generate a CSRF token (crumb) for your normal password. On Wed, Nov 4, 2020 at 18:44 sebb wrote: > I can use curl to get the contents of a config.xml, but POSTing an > updated file fails with > > No valid crumb was included in the request > > I

curl -X POST to config.xml fails with "No valid crumb was included in the request"

2020-11-04 Thread sebb
I can use curl to get the contents of a config.xml, but POSTing an updated file fails with No valid crumb was included in the request I used the following command: curl -u -X POST https://ci-builds.apache.org/job/Commons/job/$N/config.xml -d @NEW/${N}.xml Is this supposed to work? If so, what a