How to make a simple HTTP request with MbedOS 6

Hi,

I’m trying to do a simple HTTP request on MbedOS 6. I have something working on MbedOS 5, using the mbed-http library, but I can’t make it work on MbedOS 6.
I don’t know what to use to make simple GET/POST calls. It’s a basic requirement for IoT so I don’t understand why there is not a simple tutorial for that.
How do you manage APIs with MbedOS 6?

Thanks,

Nicolas

Hi Nicolas,

have you looked at the Connectivity docs here :
https://os.mbed.com/docs/mbed-os/v6.4/apis/connectivity.html ?

Hopefully you should find some answers there .

Regards
Anna

Hi Anna,

Yes, I looked at it. But it’s really low level (TCP socket level) and is not really an HTTP library.
But I was able to make mbed-http work with some small changes in the library.

Thanks,

Nicolas