Add HTTP_C::AddPostDataAscii

This commit is contained in:
shutterbug2000
2018-11-25 15:29:04 -06:00
parent 8d92278cc1
commit 4c198591d5
2 changed files with 91 additions and 0 deletions

View File

@@ -101,6 +101,7 @@ public:
struct PostData {
// TODO(Subv): Support Binary and Raw POST elements.
PostData(std::string name, std::string value) : name(name), value(value){};
std::string name;
std::string value;
};
@@ -207,6 +208,21 @@ private:
*/
void AddRequestHeader(Kernel::HLERequestContext& ctx);
/**
* HTTP_C::AddPostDataAscii service function
* Inputs:
* 1 : Context handle
* 2 : Form name buffer size, including null-terminator.
* 3 : Form value buffer size, including null-terminator.
* 4 : (FormNameSize<<14) | 0xC02
* 5 : Form name data pointer
* 6 : (FormValueSize<<4) | 10
* 7 : Form value data pointer
* Outputs:
* 1 : Result of function, 0 on success, otherwise error code
*/
void AddPostDataAscii(Kernel::HLERequestContext& ctx);
/**
* HTTP_C::OpenClientCertContext service function
* Inputs: