I think this may be a bug in Jenkins not in your Python implementation (or perhaps a feature - I've not yet found any documentation as to whether POST requests are supposed to work?)
If I try submitting a job using wget:
wget --auth-no-challenge --http-user=[user] --http-password=[password] --no-check-certificate https://tom-jdvm.redembedded.com/jenkins/job/poetry_writer/buildWithParameters?[params]
it works, but if I add
--post-data=""
which has the effect of making the request a POST not a GET, I get 403 forbidden.
I'll investigate this further and maybe raise a Jenkins bug.
Sorry for bugging you...
I think this may be a bug in Jenkins not in your Python implementation (or perhaps a feature - I've not yet found any documentation as to whether POST requests are supposed to work?)
If I try submitting a job using wget:
wget --auth-no-challenge --http-user=[user] --http- password= [password] --no-check- certificate https:/ /tom-jdvm. redembedded. com/jenkins/ job/poetry_ writer/ buildWithParame ters?[params]
it works, but if I add
--post-data=""
which has the effect of making the request a POST not a GET, I get 403 forbidden.
I'll investigate this further and maybe raise a Jenkins bug.
Sorry for bugging you...