Initial commit: Oraset programming language with documentation
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 测试网络请求功能
|
||||
|
||||
// 测试HTTP GET请求
|
||||
response = http_get(`http://example.com`);
|
||||
show(`HTTP GET response length: `, len(response));
|
||||
show(`First 100 characters: `, substring(response, 0, 100));
|
||||
|
||||
// 测试HTTP POST请求
|
||||
post_data = `{"name": "Oraset", "version": "1.0"}`;
|
||||
post_response = http_post(`http://httpbin.org/post`, post_data);
|
||||
show(`\nHTTP POST response: `, post_response);
|
||||
Reference in New Issue
Block a user