jenkinsci / jenkinsci/java-client-api
sending requests with the csrf crumb
- Dominant language
- Java
- Stars
- 913
- Forks
- 466
- PR merge metrics
- No merged PRs in 30d
Description
I am quite new to jenkins, I started using this java api to send commandds to my local jenkins server. However, i have received the following error in my request
` Exception in thread "main" org.apache.http.client.HttpResponseException: No valid crumb was included in the request at com.offbytwo.jenkins.client.validator.HttpResponseValidator.validateResponse(HttpResponseValidator.java:11)
at com.offbytwo.jenkins.client.JenkinsHttpClient.post(JenkinsHttpClient.java:239)
at com.offbytwo.jenkins.client.JenkinsHttpClient.post(JenkinsHttpClient.java:405)
at com.offbytwo.jenkins.JenkinsServer.deleteJob(JenkinsServer.java:689)
at de.security.util.JenkinsConnector.main(JenkinsConnector.java:29) `
How can I attack the csrf token to my requests, I can direclty get the token form the server.
Contributor guide
Assessment
This issue has not been assessed yet.