有没有解析http响应消息的函数或工具解决方法
有没有解析http响应消息的函数或工具
用来分离处理状态行,另外六个头部行和返回数据的函数
HTTP/1.1 200 OK
Date: Mon, 12 Mar 2004 19:12:16 GMT
Server: Apache/1.3.31 (Unix) mod_throttle/3.1.2
Last-Modified: Fri, 22 Sep 2004 14:16:18
ETag: "dd7b6e-d29-39cb69b2"
Accept-Ranges: bytes
Content-Length: 3369
Connection: close
Content-Type: text/html
File content goes here
也就是根据上面这些内容的字符串data,调用一个函数比如state(data)能返回200,content(data)返回指向file content的字符串
------解决方案--------------------
不知道libcurl有没有。
------解决方案--------------------
这里有个HTTP的实现WebClnt,你看有没有:
http://download.****.net/detail/geoff08zhang/4571358
用来分离处理状态行,另外六个头部行和返回数据的函数
HTTP/1.1 200 OK
Date: Mon, 12 Mar 2004 19:12:16 GMT
Server: Apache/1.3.31 (Unix) mod_throttle/3.1.2
Last-Modified: Fri, 22 Sep 2004 14:16:18
ETag: "dd7b6e-d29-39cb69b2"
Accept-Ranges: bytes
Content-Length: 3369
Connection: close
Content-Type: text/html
File content goes here
也就是根据上面这些内容的字符串data,调用一个函数比如state(data)能返回200,content(data)返回指向file content的字符串
------解决方案--------------------
不知道libcurl有没有。
------解决方案--------------------
这里有个HTTP的实现WebClnt,你看有没有:
http://download.****.net/detail/geoff08zhang/4571358