How to download or load Lua from server?

Hi, it’s my first time to use Lua.
In my project, one of the purpose is to dynamically modify the logical code with Lua instead of updating the app.
But I have no idea about how to download or load Lua script from the server?
Could anybody tell me about that?
I’ll appreciate it so much!

I have worked it out.

You may download any file via http, use CCHttpClient.

Shawn Clovie wrote:

You may download any file via http, use CCHttpClient.

Thank you so much! Is there any socket prototype in cocos2d?