techie
Advanced Member level 3
webserverver client
I want to download an HTTP file in an embedded controller. It has all the TCP/IP functionality in it and that part has been tested. The problem is that it cannot handle the DNS name. For example, when I want to get data from http://www.xyz.com/index.htm, I have to write the real IP in the code.
Since the site is residing on a server that has the DNS entry NS1.xxxx.NET which evaluates to a real IP=111.222.xxx.xxx. But this server has many websites hosted on it. How do I give it the information that I need "index.htm" from my required site.
I want to download an HTTP file in an embedded controller. It has all the TCP/IP functionality in it and that part has been tested. The problem is that it cannot handle the DNS name. For example, when I want to get data from http://www.xyz.com/index.htm, I have to write the real IP in the code.
Since the site is residing on a server that has the DNS entry NS1.xxxx.NET which evaluates to a real IP=111.222.xxx.xxx. But this server has many websites hosted on it. How do I give it the information that I need "index.htm" from my required site.