发布于 1年前

boa移植到android系统

参考网址:https://blog.csdn.net/u011311586/article/details/51037240

注意事项:

1、编译要交叉编译

2、编译要添加成 -static

3、修改cgi访问路径

char str[]="/IntelligentCabinetAPIServer";

char *p=NULL;

p=strstr(req->request_uri,str);

if(p){

str_replace(p,strlen(str),"/cgi-bin");

char *q=req->request_uri+strlen(req->request_uri);

strcpy(q,".cgi");

req->is_cgi = 1;

}

4、本地访问

http://172.18.1.230:80/IntelligentCabinetAPIServer/helloworld

http://172.18.1.230:80/index.html

©2020 edoou.com   京ICP备16001874号-3