调用get请求:
import curl;
import console;
var http = curl.easy();
var str = http.get("http://www.aardio.com");
console.log(str);
console.pause();
调用post请求:
import curl;
import console;
var http = curl.easy();
console.showLoading("正在连接网页");
var str = http.post("http://httpbin.org/post"
,"username=jacen&password=123456");
console.log(str);
console.pause();
请求参数也可以弄成表:
var http = curl.easy();
var str = http.post("http://httpbin.org/post" ,{
username = "jacen";
password="123456";
});
console.log(str);