We are currently building webhooks to pass data back to our systems for better conversion tracking.
If we download the report in JSON format, and then send that json via CURL to the webhook it works correctly.
However if we send the data directly from looker, it fails and we get a “411 ERROR Content Length Not Set.”
Is there a way to pass the header content length on looker side?
The current header data we are using is:
header(“Access-Control-Allow-Origin: *”); //This allows us to receive data from any domain (including looker)
header(‘Access-Control-Allow-Headers: Content-Type, Content-Range, Content-Disposition, Content-Description’);
header(‘Access-Control-Allow-Methods: GET, PUT, POST, DELETE, OPTIONS’);
header(‘Content-Type: application/json’);
header(‘Content-Length: 0’);
If there isn’t a way to pass the header info via the call:
Would anyone have any documentation or code examples on how to receive the webhook via PHP without headers?
Thanks,