Wiced sdk-6.1 snip.httpbin_org with custom url.

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
GaBa_3126656
Level 1
Level 1

Hi!

How do I change the snip.httpbin_org example to enable it to access my custom URL?

Basically, my application involves pushing the GPIO status on my custom webpage on the web server.

So, I am thinking of making an http put request with the GPIO status on my custom webpage by building-up on this example.

If there's any other approach that I can consider, I'll be happy to hear from you all.

Thanks.

0 Likes
1 Solution
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

Basically the httpbin snip performs the following operation as per RFC2616 section 5 during HTTP request 0:

GET "/get" HTTP_1_1

Host: www.httpbin.org

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.

View solution in original post

1 Reply
GauravS_31
Moderator
Moderator
Moderator
10 questions asked 250 solutions authored 250 sign-ins

Basically the httpbin snip performs the following operation as per RFC2616 section 5 during HTTP request 0:

GET "/get" HTTP_1_1

Host: www.httpbin.org

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.