I need to integrate with backend at the moment that requires I make a HTTPS POST request with an Authorization HTTP header, which I have not done before. I am deploying on Windows but developing on OSX. As the built in URL functionality doe not support POST what’s the best way to go about this? From looking at available blocks:
- Cinder-Protocol does not seem to currently work with HTTPS.
- Cinder-Asio ssl branch seems to be missing some of the recent changes to master that enabled it to compiled with ASIO standalone and latest cinder
- Cinder-Curl is no longer maintained and does not compile
So I thought I’d try to build something bare bones using ASIO. These links seem helpful:
I created a sample that installs with tinderbox and compiles with OSX based on the latter if anyone wants to take a look:
But I am getting some runtime
EXC_BAD_ACCESS errors that seem to have something to do with callbacks, perhaps due to porting code from boost asio to standalone asio (changing
error_code types). The sample seems like it would be straight forward for anyone more familiar with asio so if anyone can offer any advice that would be great!