Hi,
I love the idea of our plugin but it is not possible to send POST request via Ajax and jquery.
I do always get the following exeption:
Chrome Debug:
400 (This page expects a form submission)
Jenkins:
"java.lang.reflect.InvocationTargetException"
"Caused by: javax.servlet.ServletException: This page expects a form submission but had only {...}"
I send the POST like this:
var jqxhr = $.post(
"http://xxy.xy.xyx.xy:8080/job/AddPage/build/api/json",
{"parameter":[{"name":"s_space","value":""},{"name":"s_page","value":""},{"name":"s_parent","value":""}],"statusCode":"303","redirectTo":"."},
"json"
)
Any Idea?
Thanks for helping me :)
Hi,
I love the idea of our plugin but it is not possible to send POST request via Ajax and jquery.
I do always get the following exeption:
Chrome Debug:
400 (This page expects a form submission)
Jenkins:
"java.lang.reflect.InvocationTargetException"
"Caused by: javax.servlet.ServletException: This page expects a form submission but had only {...}"
I send the POST like this:
var jqxhr = $.post(
"http://xxy.xy.xyx.xy:8080/job/AddPage/build/api/json",
{"parameter":[{"name":"s_space","value":""},{"name":"s_page","value":""},{"name":"s_parent","value":""}],"statusCode":"303","redirectTo":"."},
"json"
)
Any Idea?
Thanks for helping me :)