Still working out cgi variable stuff.

This commit is contained in:
Brad Arant 2025-12-10 16:47:53 -08:00
parent ab748802ee
commit 1542fbe218
4 changed files with 14 additions and 2 deletions

View File

@ -21,7 +21,8 @@ namespace coreutils {
MString CGIFormData::operator[](ZString name) {
// if(contentType == "application/x-www-form-urlencoded")
// return formdata[name];
return name;
MString temp(name);
return temp;
}
}

Binary file not shown.

Binary file not shown.

View File

@ -1,6 +1,11 @@
#include <iostream>
#include "../MString.h"
coreutils::ZString testcast(coreutils::ZString data) {
std::cout << "in proc: " << data << std::endl;
return data;
}
int main(int argc, char **argv) {
// Literal string assignment tests.
@ -108,7 +113,13 @@ int main(int argc, char **argv) {
coreutils::MString test33 = test32.toBase64();
std::cout << test33 << " from base64 " << test33.fromBase64() << std::endl;
coreutils::ZString test34 = test31;
std::cout << test31 << " to zstring " << test34 << std::endl;
test34 = testcast(test31);
std::cout << test31 << " to zstring " << test34 << std::endl;
return 0;
}