Changes I needed to do to be able to do a correct call to Jenkins

I'm unaware why the post solution didn't work, this solution is tested with Jenkins version 1.533 and includes authentication.