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.
Hey Community,
We have been working hard at glowfi.sh to deliver an HTTPS client for the Particle community and I am happy to say we are ready to release it thanks to all the work by glowfi.sh engineer @jersey99 . Our client is built from matrixSSL, and you can check out our documentation, specs, and examples in our glowfishAPI repo for Particle here .
Again, we are super excited to release this and welcome any comments, feedback, pull requests, etc.!
Thanks
Mike and the glowfi.sh Team
Sign u…
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