How would you convert this into cfhttp + cfhttpparam?
I’ve not been able to find a method of looking at the headers that are being sent. I know the cURL works!
curl -X GET 'https://xyz.com/api/v3/templates?key=xxxxx&workspace=xxx@xxx.xxx&signature=xxxxxxxx'
This is the actual curl command, redacted.
Everything using the echo http data looks correct but when activated from Lucee does not work. I know the curl command works so there must be something in the actual string sent to the remote that causes the error!
Does anybody know of a method to see the actual string that is sent?
Why is this so difficult? Here we are, API’s on the way out in favour of gRPC and protocol buffers/flatbuffers and we still can’t get a simple API call to work.
I have spent hours on this and got absolutely nowhere…
Another trick I learned from @isapir is to add some JVM arguments so that the details of http calls are included in your servlet container’s (e.g. Tomcat) error logs:
It’ll depend on your environment. I run Tomcat/Lucee as a Windows service, so the jvm args are controlled via a service control applet. For other Tomcat setups I think CATALINA_OPTS will probably be the right place.