1 of 1 people found this helpful
Basically the httpbin snip performs the following operation as per RFC2616 section 5 during HTTP request 0:
GET "/get" HTTP_1_1
You can first start with framing an HTTP request as shown in the notation above. You can then change the server name and URI to the one being used by you. If you are performing HTTPS, you would also need to change the root CA certificate.
Alternately you can use MQTT to publish the GPIO status to a MQTT broker. If you are interested, you can check demo.aws_iot.pub_sub for the same using AWS MQTT broker.