cUrl cfc

Hi,
I have a cfc that returns a query in json format, so far so good but I wondered how a cfc can handle header information posted to a URL.
I know I can post URL queries but I am unsure how to handle http headers?

Hey Malachy, what exactly are you trying to do? A bit more info might help!

I suppose I am trying to ask how does one capture http headers in a cfc.
E.g. I know I can use arguments to get
Form variables, URL variables etc but I am unsure how to handle header data posted cURL

Possibly I think this is where I need to start
https://cfdocs.org/cfhttp

This is probably what you’re after:

https://cfdocs.org/gethttprequestdata

1 Like

great minds… -:slight_smile:

That should be in the CGI scope, if your web server forwards them to your servlet engine.