C:/fscan/HTTPCore/Modules/Encoding_Chunked.h File Reference

#include "../HTTP.h"

Include dependency graph for Encoding_Chunked.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define MAX_CHUNK_LENGTH   10
#define ERROR_MORE_DATA_NEEDED   -1
#define ERROR_PARSING_DATA   0xFFFFFF

Functions

int CBDecodeChunk (int cbType, HTTPHANDLE HTTPHandle, PHTTP_DATA *request, PHTTP_DATA *response)
 CallBack Function. This function is called from the DoCallBack() function once its registered and will intercept the callback information.


Define Documentation

#define ERROR_MORE_DATA_NEEDED   -1

Definition at line 7 of file Encoding_Chunked.h.

#define ERROR_PARSING_DATA   0xFFFFFF

Definition at line 8 of file Encoding_Chunked.h.

#define MAX_CHUNK_LENGTH   10

Definition at line 6 of file Encoding_Chunked.h.

Referenced by DecodeChunk(), and ReadHTTPResponseData().


Function Documentation

int CBDecodeChunk ( int  cbType,
HTTPHANDLE  HTTPHandle,
PHTTP_DATA prequest,
PHTTP_DATA presponse 
)

CallBack Function. This function is called from the DoCallBack() function once its registered and will intercept the callback information.

Parameters:
cbType CallBack Source Type. Valid options are CBTYPE_CLIENT_REQUEST , CBTYPE_CLIENT_RESPONSE , CBTYPE_BROWSER_REQUEST , CBTYPE_SERVER_RESPONSE
HTTPHandle HTTP Connection Handle with information about remote target (like ip address, port, ssl, protocol version,...)
prequest struct containing all information related to the HTTP Request.
presponse struct containing information about http reponse. This parameter could be NULL if the callback type is CBTYPE_CLIENT_REQUEST or CBTYPE_CLIENT_RESPONSE because request was not send yet.
Returns:
the return value CBRET_STATUS_NEXT_CB_CONTINUE indicates that the request (modified or not) its ok. If a registered handler blocks the request then CBRET_STATUS_CANCEL_REQUEST is returned. This value indicates that the response is locked
Note:
This function does not block requests, only tries to decode HTTP response.

Definition at line 162 of file Encoding_Chunked.cpp.


Generated on Sun Jan 18 00:32:04 2009 for Fast HTTP Vulnerability Scanner by  doxygen 1.5.4