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
How to POST XML/JSON??? #125
Comments
i believe if you just write your xml or json to a string and send to server, with proper headers or without, your server should be able to decode the string back into the proper format |
Thanks for replying. I have to send this as the POST body, so which header should I use? |
should probably only need to set "Content-Type" to "application/json" but im no expert :) |
Here's an example:
|
Closing with related referenced issue. using |
But What if I want to pass xml in body. @voidberg can you post some snippet regarding xml |
I've run into a problem with POSTing data. I have to post data to the API in the following format: -
As per the documentation, I tried doing it using RequestParams, but it is failing. Is this any other way to do it? I can POST equivalent JSON too. Any ideas?
The text was updated successfully, but these errors were encountered: