Goahead 嵌入式 Webserver 的一些demo [此博文包含图片]
来源:互联网 发布:台词拼长图什么软件 编辑:程序博客网 时间:2024/05/19 23:11
1、Form
建立一个form.asp,并保存到项目/web/目录下,内容如下:
<html>
<!-Copyright(c) Go Ahead software Inc.,2012-2012.AllRights Reserved.->
<head>
<title>Goahead Form Test</title>
<link rel="stylesheet" href="style/normal_ws.css"type="text/css">
</head>
<body>
<h1>Goahead Form Test1</h1>
<form action=/goform/formTest method=POST>
<table>
<tr>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
</form>
</body>
</html>
在 goahead 中增加如下内容:
websFormDefine(T("formTest"),formtest);
static
{
}
2、ASP
建立一个asp.asp,并保存到项目/web/目录下,内容如下:
<divid="view">
</div>
websAspDefine(T("MakePortAttributeList"),getPortAttrib);
typedef struct PortAttributeList{
}STPortAttributeList;
static
{
}
static
{
}
参考:http://www.docin.com/p-253322636.html
3、CGI
建立一个cgi.asp,并保存到项目/web/目录下,内容如下:
<formaction="/cgi-bin/cgitest">
<input name="m"SIZE="5">
<input name="n"size="5"><BR>
<input type="submit"value="OK">
</form>
新建 cgitest.c,程序如下:
#include
#include
int
{
}
编译后把可执行文档 cgitest 保存到 /cgi-bin/ 目录。
- Goahead 嵌入式 Webserver 的一些demo [此博文包含图片]
- 推荐一些用CRF做图像语义分割的资源 此博文包含图片
- Linux下Perl的安装 此博文包含图片
- Goahead webServer在vxworks上的移植
- GoAhead 2.1.8嵌入式webserver源码分析学习(一)---开篇
- goahead的一些配置
- goahead webserver源码分析
- GoAhead WebServer 架构
- GoAhead WebServer URL Handlers
- goahead webserver源码分析
- goahead webserver源码分析
- GoAhead WebServer 开发总结
- inux的启动SD卡的格式化方法 [此博文包含图片]
- HttpWatch中的ERROR_INTERNET_INVALID_URL错误 [此博文包含图片]
- Vim中的代码补全 此博文包含图片
- TortoiseSVN日常使用指南 此博文包含图片
- dede会员修改批量上传 此博文包含图片
- 回声消除原理 此博文包含图片
- WSDL2Java
- 在Activity中的OnCreate中,获取控件TextView的width及height
- Twitter电面面经
- DIV CSS网页布局 让搜索引擎蜘蛛不再累
- 我的天, 昨天不小心把一个AWS的账号给错误地禁用了.
- Goahead 嵌入式 Webserver 的一些demo [此博文包含图片]
- 怎么将PHPCMS V9网站程序中整合添加百度编辑器UEDITOR
- 求平均成绩
- Release版本
- DIV+CSS网页布局中CSS失效的原因
- gdb vector
- Oracle查询当前会话的sid
- op积分上反馈电阻 作用 理解 op 积分
- Struts2用fileupload批量上传文件