Skip to content
This repository has been archived by the owner on Jun 22, 2020. It is now read-only.

Commit

Permalink
Added raw data logging to WinHttpSendRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
Atvaark committed Apr 28, 2015
1 parent 7f154e4 commit df9dec8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 0 deletions.
Binary file modified Eldorado.HttpProxy/resource/Resource.rc
Binary file not shown.
1 change: 1 addition & 0 deletions Eldorado.HttpProxy/source/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,7 @@ BOOL WINAPI WinHttpSendRequest(
char* pBody = static_cast<char*>(lpOptional);
std::string body = dwOptionalLength == -1 ? std::string(pBody) : std::string(pBody, dwOptionalLength);
theLogger().LogFormatA("WinHttpSendRequest(%x, ...) called with body: %s", hRequest, body.c_str());
theLogger().LogRawData(L"sr_", pBody, dwOptionalLength);

return oWinHttpSendRequest(
hRequest,
Expand Down

0 comments on commit df9dec8

Please sign in to comment.