|
当然可以做!
请看帮助中的一个函数例子
#include <VU.h>
{
CAPRICORN_WEB_80 = http_request "CAPRICORN-WEB:80",
HTTP_CONN_DIRECT,
"GET / HTTP/1.0\r\n"
"Accept: application/vnd.ms-excel, application/mswo"
"rd, application/vnd.ms-powerpoint, image/gif, imag"
"e/x-xbitmap, image/jpeg, image/pjpeg, */*\r\n"
"Accept-Language: en\r\n"
"UA-pixels: 1152x864\r\n"
"UA-color: color8\r\n"
"UA-OS: Windows NT\r\n"
"UA-CPU: x86\r\n"
"User-Agent: Mozilla/2.0 (compatible; MSIE 3.01; Windows NT)\r\n"
"Host: capricorn-web\r\n"
"Connection: Keep-Alive\r\n\r\n";
set Server_connection = CAPRICORN_WEB_80;
http_header_recv 200; /* OK */
http_nrecv 100 %% ; /* 4853/4051 bytes */
http_disconnect(CAPRICORN_WEB_80);
}
上边说什么!说明rational 可以支持http,那么bs结构主要的协议是什么?
我想不言而明
[ Last edited by pcl2004_27 on 2004-7-9 at 13:49 ] |
|