more formdata work.

This commit is contained in:
Brad Arant committed 2025-03-17 16:46:50 -07:00
1 parent d3cd5f3c9a
commit 050b5f2b87
3 files changed
+6 -5

No files matched your search

+5 -3
View File
@@ -43,17 +43,19 @@ namespace jet {
}
std::cout << "013" << std::endl;
coreutils::ZString requestMethod(getenv("REQUEST_METHOD"));
if(requestMethod == "POST") {
std::cout << "014: " << requestMethod << std::endl;
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
if(contentType == "multipart/form-data") {
std::cout << "015" << std::endl;
coreutils::IMFMultipart postdata(0, contentLength.asInteger());
std::cout << "016" << std::endl;
}
}
// else if(contentType == "application/x-www-form-urlencoded")
// global.setupFormURLEncoded(postdata);
}