Skip to content

Can't do a POST via jquery #3

@predator747

Description

@predator747

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 :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions