Community
Fusion API and Scripts
Got a new add-in to share? Need something specialized to be scripted? Ask questions or share what you’ve discovered with the community.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Https post on macos c++

1 REPLY 1
Reply
Message 1 of 2
rolandas_vegis
308 Views, 1 Reply

Https post on macos c++

Hello, I ran into an interesting problem while trying to implement a cross platform https post from c++ add-in.

 

Using this library: https://github.com/yhirose/cpp-httplib  (it uses openssl as a dependency) I got it working on windows. However when I moved to installing it on mac, I ran into a problem.  The post does not work (crashes) when running it from under Fusion, as an add-in. However when running the same code from an executable it works just fine.

 

Any ideas what fusion could be doing to change the behavior?

 

Any suggestions how to best go about this would be appreciated.

1 REPLY 1
Message 2 of 2
jiri.manak
in reply to: rolandas_vegis

Hi, 

As stated on the github web page  of cpp-httplib,  it is a header-only library. I had also massive problems with header-only libraries used in Fusion 360 add-ins. My solution is to use static. Some header-only have a static variant too. 

For http requests I use  libcurl. Works fine with WINDOWS and macOS.

 

Jiri

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report