wondering if there is a way to dynamically provide...
# cfml-general
m
wondering if there is a way to dynamically provide arguments to cfhttp - (thinking primarily of the proxy arguments). I've got a basic cfhttp request set up - is there a way that I can optionally call it with the proxy arguments?
b
@mjclemente
attributeCollection
I do this in the s3sdk to deal with different attributes being supported in CFHTTP across Adobe and Lucee
m
is that actually a thing>?~!!!!
literally have never heard of it before
that is awesome
b
Also, cfhttp is a tag, so they are called 'attributes', not 'arguments' πŸ™‚
m
(because of course, I tried argumentcollection, lol)
b
Yeah, attributesCollection is from CF8 I think
m
wow 🀯
b
Tags use attributeCollection, and BIFs use argumentsCollection
m
man... that is bonkers
I'm really glad I asked
thank you!
πŸ‘ 1
b
You can also mix hard-coded attributes with this too
m
seriously - that is kick ass - got a big old goofy grin on right now from learning something new
😁 2
a
Question for you, @mjclemente... having just learned there's an excellent new feature you missed from CF8, did you immediately go check the "new features in...CF_n_" for each version of CF since then?
m
hahahaha - I wish I had the time to - gotta find @carehart's posts on the hidden gems for each version. I remember when 8 came out... which is making me feel old now.
c
@mjclemente they're all (always) at carehart.org/presentations (I have not followed this thread to this point, but got notified of the mention, so am just responding to Matt's comment)
m
I wasn't sure on the protocol of @referencing you when you hand't been involved. I got excited that I learned about
attributeCollection
, which I had somehow missed over these many years
c
oh, no harm at all. BTW, I see I covered it on slide 11 at https://www.carehart.org/presentations/Hidden%20Gems%20in%20CF8.pdf
also slide 9 of https://www.carehart.org/presentations/ColdFusion8_Best-Kept%20Secrets.pdf. I point these out only to say that yep, it can be fun (and profitable) to review such old preso's (or docs, if still around) to see what may have come out then that could have been missed. happens to us all. πŸ™‚
a
I wish I had the time to
You don't consider you have time to keep up what I am guessing is the main tool of your day job? We're talking what... an hour out of your career? I think that's pretty odd, but so be it.
c
btw, Adam, in Matt's defense sadly there is not always readily available in the docs a "what's new" for each release going back to each of the last few, let alone the last several releases. But sure, glad to have my talks there to help those who may want to get a refresher I even did some "what you may have missed" talks aggregating key things in a few releases, at different times (also listed there). As always, just trying to help.
9min
And of course you - @carehart - will have your "hidden gems" docs hidden away somewhere for each too
(not showing up on Google for "What's new in coldfusion nnnn" for me... might be an SEO opportunity there?)
(If I spent 15min I could have got the actual official versions for the older ones from the wayback machine, I guess)
c
sounds like the making of an awesome post to help others. but I realize your point is that anyone wanting to do that work could/should have been able to do it on their own. that's why the world needs each of us, doing what we do, how we do it πŸ™‚
m
@Adam Cameron hahaha - thought you were joking mate. We're a Lucee shop, and I read the release notes on the dev forum as they come out.
as for missing attributeCollection - one of those gems I apparently hadn't needed in a decade. If I had read it, it didn't stick.
I enjoy finding those - it'll happen every few months - it's pretty amazing how a tool you use every day can have still unexplored corners that are useful, in their particular niche
βœ… 1
a
No, I seriously think ppl should stay on top of the tools they use. CF... Lucee... same. (not entirely faultless there myself, obvs)
c
And again, my hidden gems aren't "hidden away somewhere for each". my first reply pointed Matt to them. But sure, I suppose my SEO (which is none, at all, ever) may not lead to that search finding those results. The bigger problem really is that because so much of my content is locked up in PDFs of preso's, the search engines don't give those much love. I've thought about creating posts out of my talks...takes time...
a
I enjoy finding those - it'll happen every few months
I'd be same these days... CFML kinda fell off my radar between 2016 and 2021, and a lot of stuff was added in that time.
βœ… 1
@carehart yeah I was actually wondering if it was all on slides etc so not so penetrable for Google and its ilk.
I think the argumentcollection (more) and attributecollection stuff is a pretty handy feature in CFML. But esp with the latter it's a case of "better to know and not need, than need and not know"
βœ… 1
@carehart are you doing a 5min lightning talk @ CFCamp covering all the new features in CF2023 😈
c
i'm doing a full session "hidden gems in cf2023". didn't know about (hear about, notice) the option of lightning talks. could be an interesting "appetizer" to my fuller meal...but then each speaker could assert the same πŸ™‚
a
Sorry. It was a joke about the lack of content in CF2023.
c
"lack of content in cf2023" at CFCamp, you mean? Well, I'm doing my part. Hey, some at that event might think that's "plenty/enough" ;-} Technically, it's not. My talk does not show use of the MAJOR new features. Normally that would be Adobe doing a keynote, but they are not doing one this year, for whatever reason I'm about to start a client (troubleshooting) session so I will have to catch up later
z
It’s documented here https://docs.lucee.org/reference/tags.html feel free to improve!