You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@apache.org by sebb <se...@gmail.com> on 2020/11/05 00:43:42 UTC
curl -X POST to config.xml fails with "No valid crumb was included in
the request"
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<user> -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 am I missing?
Re: curl -X POST to config.xml fails with "No valid crumb was
included in the request"
Posted by sebb <se...@gmail.com>.
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 <bo...@gmail.com> wrote:
>
> 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 <se...@gmail.com> 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 used the following command:
> >
> > curl -u<user> -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 am I missing?
> >
Re: curl -X POST to config.xml fails with "No valid crumb was
included in the request"
Posted by Matt Sicker <bo...@gmail.com>.
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 <se...@gmail.com> 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 used the following command:
>
> curl -u<user> -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 am I missing?
>