客户端建的POST消息是
char* req="POST /firstisapi/FirstISAPI.dll&GetSubStruValue HTTP/1.0\r\n"
"Content-Type: application/x-www-form-urlencoded"
"Content-Length:8\r\n"
"Accept:text/html\r\n"
"Host:192.168.10.171\r\n"
"Connection: close\r\n\r\n" "a=14&b=2";调用isapi.dll的方法是
void GetSubStruValue(CHttpServerContext *pCtxt,long a,long b);为什么就是不成功,估计是post消息有问题,麻烦帮忙看一下消息应该怎么建? 我感觉是这里的问题
POST /firstisapi/FirstISAPI.dll&GetSubStruValue
char* req="POST /firstisapi/FirstISAPI.dll&GetSubStruValue HTTP/1.0\r\n"
"Content-Type: application/x-www-form-urlencoded"
"Content-Length:8\r\n"
"Accept:text/html\r\n"
"Host:192.168.10.171\r\n"
"Connection: close\r\n\r\n" "a=14&b=2";调用isapi.dll的方法是
void GetSubStruValue(CHttpServerContext *pCtxt,long a,long b);为什么就是不成功,估计是post消息有问题,麻烦帮忙看一下消息应该怎么建? 我感觉是这里的问题
POST /firstisapi/FirstISAPI.dll&GetSubStruValue
"From: local\r\n"
"User-Agent: post_test/1.0\r\n"
"Content-Type: application/x-www-form-urlencoded\r\n"
"Content-Length: 8\r\n\r\n"
"a=12&b=3";