Http post crashes code

Hi,
i've have working code performing a http.get and post on a photon running 3.3.1, when compiling for electron 3.3.1 the "get" works but arriving at the first "post" the electron just crashes.
Does anyone have an idea where to look.
Thanks in advance
Erik

Which HTTP library are you using?

Hi,
I because I remarked a small difference in length of the files I just replaced my files with the ones from
https://github.com/nmattisson/httpclient



|
GitHub - nmattisson/HttpClient: Http Client Library for the Spark Core (also well suited for Arduino and other embedded platforms).
Http Client Library for the Spark Core (also well suited for Arduino and other embedded platforms). - nmattisson/HttpClient
github.com
|

  • | - |

After compiling and flashing I still have a crash on the first post from the electron. (I will try the photon this later on, but expect it will work).
Regards,
Erik

What does your code for setting the body look like? Actually all of your code would be better if you can share it.

Hi,

as I can not share the code, I wend back to the basics to provide a minimal example. Strangely enough here the post using electron works as well as on photon.
If I do find the issue causing the hard fault on electron, I'll let you know.

Thanks for your time,
best regards,
Erik