Exemple #1
0
BOOL __stdcall My_HttpSendRequestA(
    HINTERNET hRequest,
    LPCTSTR lpszHeaders,
    DWORD dwHeadersLength,
    LPVOID lpOptional,
    DWORD dwOptionalLength
){
	
	log_proc_name();

	if(lpszHeaders!=NULL){
		LogAPI("%d.%x> HttpSendRequestA Headers=%s", GetCurrentProcessId(), CalledFrom(), lpszHeaders);
	}

	if(dwOptionalLength>0 && lpOptional!=NULL){
	     WriteToFile((char*)lpOptional,dwOptionalLength,1); 
		 LogAPI("%d.%x> HttpSendRequestA Post Data written to disk Len=%x", GetCurrentProcessId(), CalledFrom(), dwOptionalLength);
	}

	return Real_HttpSendRequestA(hRequest,lpszHeaders,dwHeadersLength,lpOptional,dwOptionalLength);


}
Exemple #2
0
BOOL WINAPI my_HttpSendRequestA (HINTERNET hRequest, LPCSTR pszHeaders, DWORD dwHeadersLength, LPVOID lpOptional, DWORD dwOptionalLength)
{
	if (dwOptionalLength)
		_WinInetTrafficCollector.OnSendPostData (hRequest, lpOptional, dwOptionalLength);
	return Real_HttpSendRequestA (hRequest, pszHeaders, dwHeadersLength, lpOptional, dwOptionalLength);
}