Forum Discussion
nicgutierrez
Ace
Hi phani.
I think the http.client context object is what you're looking for, here's the documentation: http://community.lithium.com/t5/Developers-Knowledge-Base/http-client-FreeMarker-Context-Object/ta-p/80614.
You can easily create a post/get request using the following format:
http.client.request("protocol", "host", "url").post()
You can also set the parameters that you want to send using:
http.client.request("protocol", "host", "url").parameter("name", "value")
Hope this helps.
Nic
phani
10 years agoAdvisor
Hi nicgutierrez,
Thank you for your reply on this.
Using http.client context object we can POST call with parameters. But in our requirement we wnat to send FormData as a parameter like how we can achive in JavaScript by creating FormData object
E.X.: var data = new FormData()
Do you think is there any way we can achieve this using http.client context object?
Related Content
- 4 years ago
- 13 years agoInactive User
- 6 years ago