| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 627 人关注过本帖
标题:[求助]请教关于数据过滤的问题
只看楼主 加入收藏
wfpb
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2188
专家分:0
注 册:2006-4-2
收藏
 问题点数:0 回复次数:4 
[求助]请教关于数据过滤的问题

有个任务。服务器接受客户的提请。然后在IIS发送原始数据的时候对数据进行分析,然后对不合法的要求过滤,我想问一下,在OnSendRawData()函数中的参数的具体意义,以及这些参数的每一个属性是什么意思。请达人指教。

搜索更多相关主题的帖子: IIS 服务器 数据 
2007-07-09 14:39
aipb2007
Rank: 8Rank: 8
来 自:CQU
等 级:贵宾
威 望:40
帖 子:2879
专家分:7
注 册:2007-3-18
收藏
得分:0 
你都不知道,估计知道的人就少了!

呵呵~

Fight  to win  or  die...
2007-07-09 15:22
野比
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:24
帖 子:1627
专家分:516
注 册:2007-5-24
收藏
得分:0 

MSDN是干啥的?

----------------------


MFC Library Reference
CHttpFilter::OnReadRawData

This member function is called by the framework to allow the application to see the raw data.


[CODE]virtual DWORD OnReadRawData(
CHttpFilterContext* pfc,
PHTTP_FILTER_RAW_DATA pRawData
); [/CODE]

Parameters
pfc
A CHttpFilterContext object, which contains context information. The CHttpFilterContext object can be used by the filter to associate any context information with the HTTP request.

pRawData
A pointer to an HTTP_FILTER_RAW_DATA structure.

Return Value

One of the following notification types:

SF_STATUS_REQ_FINISHED
The filter has handled the HTTP request. The server should disconnect the session.

SF_STATUS_REQ_FINISHED_KEEP_CONN
Same as SF_STATUS_REQ_FINISHED except the server should keep the TCP session open if the option was negotiated.

SF_STATUS_REQ_NEXT_NOTIFICATION
The next filter in the notification chain should be called.

SF_STATUS_REQ_HANDLED_NOTIFICATION
This filter handled the notification. No other handlers should be called for this particular notification.

SF_STATUS_REQ_ERROR
An error occurred. The server should use the Win32 API SetLastError to indicate the error to the client.

SF_STATUS_REQ_READ_NEXT
The filter is an opaque stream filter; Negotiate the session parameters. Only valid for raw read notification.

If unsuccessful, the notification type SF_STATUS_REQ_ERROR should be returned. In this case, the server should use the Windows function SetLastError and indicate the error to the client.

Remarks

The data returned will contain both headers and data.

Override this member function to process raw data differently.The default implementation does nothing.


女侠,约吗?
2007-07-10 19:27
wfpb
Rank: 6Rank: 6
等 级:贵宾
威 望:29
帖 子:2188
专家分:0
注 册:2006-4-2
收藏
得分:0 

遇到问题查询MSDN,baidu一直是我的习惯,然后才会问问题。

或许我表达不清楚,我想知道lpInData的数据是按照什么格式?

我需要知道哪些只是,然后才可以很好的解析这些数据。

或许这些数据有一些重要信息,而不是完全是数据部分。

我就是对上面几个问题的疑问。


[glow=255,red,2]wfpb的部落格[/glow] 学习成为生活的重要组成部分!
2007-07-10 20:05
野比
Rank: 7Rank: 7Rank: 7
等 级:贵宾
威 望:24
帖 子:1627
专家分:516
注 册:2007-5-24
收藏
得分:0 

这样啊...但是你原来的问题从头到尾没出现过lpInData...
IIS的东西我不清楚..不过lpInData不就是存数据流的吗?
String类型或者LPBYTE类型..
至于格式...似乎没有定论..


女侠,约吗?
2007-07-11 20:29
快速回复:[求助]请教关于数据过滤的问题
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.020750 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved