http://coldfusion.com logo
#cfml-general
Title
# cfml-general
z

zackster

03/11/2022, 8:20 PM
Who wants to add cfml? https://curlconverter.com/
j

jumpmaster

03/11/2022, 10:07 PM
I would love a tool like this. Going to look into it, but I don't use a lot of nodejs
s

Scott Steinbeck

03/23/2022, 7:00 AM
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

zackster

03/26/2022, 3:07 PM
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

Scott Steinbeck

04/05/2022, 10:04 PM
I got it working
z

zackster

04/06/2022, 7:16 PM
😎
s

Scott Steinbeck

04/10/2022, 3:27 AM
4 Views