PhHttpSocketSendRequest() which part is the "body:" for this function #1478
Replies: 3 comments 2 replies
-
I found this definition from the |
Beta Was this translation helpful? Give feedback.
-
The information in that parameter is going to depend on what the server is expecting and the API contract with the server including headers and body. Please carefully read the entire documentation on WinHttpSendRequest. Once you've done that. If it doesn't answer your question, you will have to provide more information on specifically what you're trying to achieve by making an HTTP request to a server, what the API contract looks like, what the server is expecting and what you expect to receive in response. |
Beta Was this translation helpful? Give feedback.
-
Download |
Beta Was this translation helpful? Give feedback.
-
Hello,
I am trying to understand how the
PhHttpSocketSendRequest()
works and it seems to have the following parameters.PhHttpSocketSendRequest(
In PPH_HTTP_CONTEXT HttpContext,
In_opt PVOID RequestData,
In_opt ULONG RequestDataLength
);
In the function
VirusTotalProcessApiThread()
that usesPhHttpSocketSendRequest()
it sendsJsonArray->buffer
for the parameterRequestData
. Would this be considered the body such as when making an API POST call? I'm tried to word this the best I could but please let me know if I need to clarify further with my question and thank you to whoever might be able to provide some clarification to me.Kindest regards,
Eric Kemmer
Beta Was this translation helpful? Give feedback.
All reactions