How can I post non-binary data?

I am trying to make some REST POST calls. The server expects xml/json formats. Currently, the PostSubmit only allows Binary posts. How can I:

1. Post XML/JSON?
2. Set header types for the posts (e.g. Content-Type, and other attributes)?

Thank you.

I sugest you to look for the ardoHTTP component in the forge. It is made specifically do handle REST like requests.

Also, are using the Platform 9? It supports consuming REST APIs (with json) directly.

(I'm not saying that you can't do most of what you need with the httprequesthandler extension....but will be a lot harder)

João Rosado
Thanks for the quick reply. I found and subsequently added ardoHttp. I am now able to complete my APIs requests.