cURL or HTTP request from Photon

The original poster's request can’t be done with the httpclient library, because it uses https (TLS/SSL encrypted), which is not supported by httpclient.

There’s an https client for Particle by glowfi.sh.

But by far the easiest way to do this is with a webhook. That’s what I’d do.
https://docs.particle.io/guide/tools-and-features/webhooks/

Rick