http is supported in CFScript, and can used like so:
httpResult = HTTP(
method : "GET",
url : 'http://openbd.org'
);
writeDump(httpResult);
you can set params like so:
params = [
{ "type" : "header", "name" : "Content-Type", "value" :
"application/x-www-form-urlencoded" }
];
httpResult = HTTP(
method : "GET",
url : 'http://openbd.org',
httpparams : params
);
writeDump(httpResult);
mwkorver <mailto:[email protected]>
01 December 2013 09:39
I cannot seem to get http working from within cfscript. Is this not
supported?
something like
httpService = new http();
/* set attributes using implicit setters */
httpService.setMethod("get");
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google
Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
--
--
online documentation: http://openbd.org/manual/
http://groups.google.com/group/openbd?hl=en
---
You received this message because you are subscribed to the Google Groups "Open BlueDragon" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.