Still working out cgi variable stuff.
This commit is contained in:
parent
ab748802ee
commit
1542fbe218
@ -21,7 +21,8 @@ namespace coreutils {
|
|||||||
MString CGIFormData::operator[](ZString name) {
|
MString CGIFormData::operator[](ZString name) {
|
||||||
// if(contentType == "application/x-www-form-urlencoded")
|
// if(contentType == "application/x-www-form-urlencoded")
|
||||||
// return formdata[name];
|
// return formdata[name];
|
||||||
return name;
|
MString temp(name);
|
||||||
|
return temp;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
@ -1,6 +1,11 @@
|
|||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "../MString.h"
|
#include "../MString.h"
|
||||||
|
|
||||||
|
coreutils::ZString testcast(coreutils::ZString data) {
|
||||||
|
std::cout << "in proc: " << data << std::endl;
|
||||||
|
return data;
|
||||||
|
}
|
||||||
|
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
|
|
||||||
// Literal string assignment tests.
|
// Literal string assignment tests.
|
||||||
@ -108,7 +113,13 @@ int main(int argc, char **argv) {
|
|||||||
|
|
||||||
coreutils::MString test33 = test32.toBase64();
|
coreutils::MString test33 = test32.toBase64();
|
||||||
std::cout << test33 << " from base64 " << test33.fromBase64() << std::endl;
|
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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user