-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Post json within request body #545
Labels
Comments
WorkaoundUse https://github.com/marioizquierdo/jquery.serializeJSON to generate json and post with jquery, like:
|
I see. That makes a lot of sense. I have added the "help wanted" label to this issue. Would you please submit a pull request to add this feature? I am very open and responsive to pull requests. |
Is it still open? |
Raised PR #557 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This is a feature request, and I think it's raised in #531 but misunderstanded
Description:
Now only form data format is supported in this plugin, I'd like to post json data in post body (like this: https://stackoverflow.com/questions/5570747/jquery-posting-json)
In jquery it can be done with code below:
Expected Behavior:
With option:
Request body like this :
Actual behavior:
Unsupported, now only encoded form data can be in post body
Request body like this:
Why
It's quite common in now days for communicating with server in protocol of json instead of form data, so this feature is needed.
The text was updated successfully, but these errors were encountered: