# How to make a HTTPS POST request

**URL:** <https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281>\
**Category:** Developing Cinder\
**Created:** [September 24, 2016, 2:16am UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281 "2016-09-24T02:16:01Z")\
**Posts on this page:** 7\
**Page:** 2

<div class="post-metadata">

**Author:** ![ryanbartley](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/ryanbartley/32/5_2.png) [@ryanbartley](https://discourse.libcinder.org/u/ryanbartley)\
**Post date:** [August 9, 2017, 6:22pm UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281/21 "2017-08-09T18:22:49Z")

</div>

What branch are you running this from? Should be using UpdateBlock.

---

<div class="post-metadata">

**Author:** ![ryanbartley](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/ryanbartley/32/5_2.png) [@ryanbartley](https://discourse.libcinder.org/u/ryanbartley)\
**Post date:** [August 9, 2017, 6:30pm UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281/22 "2017-08-09T18:30:27Z")

</div>

Hmm. Looks like that’s still there. I’ll push a fix to the UpdateBlock branch.

---

<div class="post-metadata">

**Author:** ![Craigson](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/craigson/32/43_2.png) [@Craigson](https://discourse.libcinder.org/u/Craigson)\
**Post date:** [August 9, 2017, 6:30pm UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281/23 "2017-08-09T18:30:59Z")

</div>

I was working from Master as I’m trying to add to an existing proj as I wanted to get around using cmake

---

<div class="post-metadata">

**Author:** ![nay](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nay](https://discourse.libcinder.org/u/nay)\
**Post date:** [August 9, 2017, 11:30pm UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281/24 "2017-08-09T23:30:22Z")

</div>

There is likely a more eloquent fix but to get this working with the v120 toolset a while back I ended up implementing this hack:

> <https://github.com/codeoncanvas/Cinder-HTTP/blob/toolset_120/src/cinder/http/no_except_work_around.h>

I then had to include that file in Cinder-HTTP where I was getting errors.

---

<div class="post-metadata">

**Author:** ![Craigson](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/craigson/32/43_2.png) [@Craigson](https://discourse.libcinder.org/u/Craigson)\
**Post date:** [August 10, 2017, 2:32pm UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281/25 "2017-08-10T14:32:26Z")

</div>

Thanks @nay, I’ll give this a try - I spoke to @ryanbartley and he’s looking into it. I think he’ll be merging all his changes to the master branch some time soon.

---

<div class="post-metadata">

**Author:** ![Craigson](https://yyz2.discourse-cdn.com/flex030/user_avatar/discourse.libcinder.org/craigson/32/43_2.png) [@Craigson](https://discourse.libcinder.org/u/Craigson)\
**Post date:** [October 31, 2017, 6:17pm UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281/26 "2017-10-31T18:17:33Z")

</div>

Trying to revive my efforts to use the UpdateBlock from Cinder-HTTP.

After using @nay’s workaround, it’s now throwing the following error:

`Error	1	error C2664: 'size_t asio::basic_waitable_timer<std::chrono::high_resolution_clock,asio::wait_traits<Clock>,asio::waitable_timer_service<Clock,WaitTraits>>::expires_from_now(const std::chrono::duration<std::chrono::system_clock::rep,std::chrono::system_clock::period> &,asio::error_code &)' : cannot convert argument 1 from 'std::chrono::nanoseconds' to 'const std::chrono::duration<std::chrono::system_clock::rep,std::chrono::system_clock::period> &'	C:\Users\Balance\Desktop\cinder_0.9.1_vc2013\cinder_0.9.1_vc2013\blocks\Cinder-HTTP\src\cinder\http\http.hpp	157	1	Post`

Anyone else run into this on MSW 10 VC2013?

---

<div class="post-metadata">

**Author:** ![nay](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nay](https://discourse.libcinder.org/u/nay)\
**Post date:** [November 1, 2017, 1:17am UTC](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281/27 "2017-11-01T01:17:06Z")

</div>

Just a note that the fork I linked with the workaround is from `master` not `UpdateBlock`. I have been using this fine with VC2013 although don’t use it for more recent VC2015 projects. Don’t suppose master will suffice for your VC2013 project?

[Previous page](https://discourse.libcinder.org/t/how-to-make-a-https-post-request/281.md?page=1)
