# Any C examples of HTTP API?

**URL:** <https://discuss.blues.com/t/any-c-examples-of-http-api/257>\
**Category:** Uncategorized\
**Created:** [May 11, 2021, 1:44pm UTC](https://discuss.blues.com/t/any-c-examples-of-http-api/257 "2021-05-11T13:44:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![BrianP](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@BrianP](https://discuss.blues.com/u/BrianP)\
**Post date:** [May 11, 2021, 1:44pm UTC](https://discuss.blues.com/t/any-c-examples-of-http-api/257/1 "2021-05-11T13:44:04Z")

</div>

Before I started writing something I thought I would ask if there are any open examples of HTTP API? I know the developers page shows curl examples but I will need something programmatic. I think POCO will do, but that means I have to learn all about POCO so I thought I’d ask if any examples are around in c.

Thanks

---

<div class="post-metadata">

**Author:** ![zfields](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.blues.com/zfields/32/29_2.png) [@zfields](https://discuss.blues.com/u/zfields)\
**Post date:** [May 12, 2021, 12:38pm UTC](https://discuss.blues.com/t/any-c-examples-of-http-api/257/2 "2021-05-12T12:38:49Z")

</div>

Hi @BrianP ,

I don’t believe we have any ready made examples exercising the Blues HTTP API using C code.

Are you able to share a high-level overview of what you are trying to achieve? Perhaps we could offer help or guidance if we better understood your objective.

---

<div class="post-metadata">

**Author:** ![BrianP](https://avatars.discourse-cdn.com/v4/letter/b/94ad74/32.png) [@BrianP](https://discuss.blues.com/u/BrianP)\
**Post date:** [May 12, 2021, 1:25pm UTC](https://discuss.blues.com/t/any-c-examples-of-http-api/257/3 "2021-05-12T13:25:03Z")

</div>

Sure. If you look here [Quickstart - Blues Developers](https://dev.blues.io/build/quickstart/notecarrier-af/#send-notes-from-notehub-to-notecard) under the HTTP API tab you have curl examples  
curl --request POST --location ‘[https://api.notefile.net/auth/login](https://api.notefile.net/auth/login)’   
–data ‘{“username”:"[you@youremail.com]", “password”: “[your\_password]”}’

For sending data to the Notecard. Curl is great but you need to be running an OS to use it, but I think it would be a more typical use case to use a library which can be integrated into an application. So I was wondering if any such example existed.

Meanwhile I have been exploring the Poco library and have managed to get httpget working and I am now working on http post.
