This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Basic http get example

Hello,

We are working with the nrf 9160 dk.

We need to use internet connectivity to send an http get and post to a remote server.

We want to utilize the NB-IoT modem on the board. 

As it stands now, can get connected to the network but we cannot send a get or post to the remote server.

Kindly let us know if there is a configuration or a example code we can use to achieve this.

Thanks and regards

Parents Reply
  • Thanks for the response;

    So when we do my the manual resolving as you suggested; for example for google.com ("216.58.208.174"), getaddinfo() is ok, but we still get stuck at connect(), with an error "connect() failed, err: 60".

    As you may note, this was the first error I sent to you at the start of this thread! We did manual resolving of google's hostname.

    Please is there another config we need to do? Or a hardware plug we need to push?

    Kindly help

    Regards.

Children
Related