Who wants to add cfml? <https://curlconverter.com/...
# cfml-general
z
Who wants to add cfml? https://curlconverter.com/
j
I would love a tool like this. Going to look into it, but I don't use a lot of nodejs
s
Ill give it a shot, shouldn’t be too hard
Question @zackster which syntax do you think would be the most used for cf
Copy code
cfhttp(method="POST", charset="utf-8", url="<https://www.google.com/>", result="result") {
    cfhttpparam(name="q", type="formfield", value="cfml");
}
writeDump(result);
or
Copy code
httpService = new http(method = "POST", charset = "utf-8", url = "<https://www.google.com/>");
httpService.addParam(name = "q", type = "formfield", value = "cfml");
result = httpService.send().getPrefix();
writeDump(result);
I figure i should do it in script either way, to try and discourage tag usage
@zackster
z
Definitely script based, whatever works in both engines is obviously best. The new http stuff in Lucee is just a wrapper around cfhttp (same with queryExecute and cfquery)
I prefer the http url="..." { Httpparam value="..";} syntax myself
s
I got it working
z
😎
s