Ok, it seems that you need to add xmlHttp.setRequestHeader('Content-type',
'application/x-www-form-urlencoded');
2013/5/30 Louis Roché
> Hi,
>
> I try to trigger a job via the api with a parameter.
>
> With curl, it works:
>
> curl -X POST "
> http://192.168.5.230:8080/job/Generate%20new%20refe
Ok, I can send params now, but I have a problem with the charset. If I send
"E63H 総組立" as the value of exchange_revision, I receive "E63H �D�".
My code:
function httpPost(theUrl, Params) {
var xmlHttp = null;
xmlHttp = new XMLHttpRequest();
alert(Params);
xmlHttp.open( "POST",
Hi,
I try to trigger a job via the api with a parameter.
With curl, it works:
curl -X POST
"http://192.168.5.230:8080/job/Generate%20new%20reference%20files/build?token=toto";
--data
'json={"parameter":[{"name":"exchange_revision","value":"superargument"}]}'
But I want to do it from javascr
Hi.
I try to trigger a job with a parameter via
--
You received this message because you are subscribed to the Google Groups
"Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to jenkinsci-users+unsubscr...@googlegroups.com.
For more options,