Well, there's a network stack already there, including HTTP and HTTPS on newer firmwares.