This commit is contained in:
Cloud Wu
2014-08-04 18:17:35 +08:00

View File

@@ -2,7 +2,7 @@ local skynet = require "skynet"
local httpc = require "http.httpc" local httpc = require "http.httpc"
skynet.start(function() skynet.start(function()
print("GET www.baidu.com") print("GET baidu.com")
local header = {} local header = {}
local status, body = httpc.get("baidu.com", "/", header) local status, body = httpc.get("baidu.com", "/", header)
print("[header] =====>") print("[header] =====>")