Skip to content
Discussion options

You must be logged in to vote

I probably know what's wrong, didn't occur to me earlier, but seems like the host field is added to the http headers and with your configuration it uses 127.0.0.1. One workaround is to use the actual hostname and make the internal DNS resolve it to localhost.

#define OTA_HTTP_URL "http://"sub.domainname.com/ota/download"
#define OTA_HTTP_GSM_URL "sub.domainname.com" // using GSM connection

For the DNS part, you can use an lwip extern-resolve hook, set it to "weak" and implement it in your main component.

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
4 replies
@david-cermak
Comment options

@david-cermak
Comment options

Answer selected by bcebesoy
@bcebesoy
Comment options

@bcebesoy
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants