CGI parsing work in progress.
This commit is contained in:
parent
7e835e5073
commit
ac0865d2da
2
Global.h
2
Global.h
@ -27,8 +27,8 @@ namespace jet {
|
|||||||
char *errorCursor = NULL;
|
char *errorCursor = NULL;
|
||||||
|
|
||||||
coreutils::CGIFormattedData cookies;
|
coreutils::CGIFormattedData cookies;
|
||||||
|
coreutils::CGIFormData *formdata;
|
||||||
std::map<coreutils::MString, coreutils::MString> variables;
|
std::map<coreutils::MString, coreutils::MString> variables;
|
||||||
std::map<coreutils::MString, coreutils::MString> cgiVariables;
|
|
||||||
std::map<coreutils::MString, __mysql *> sessions;
|
std::map<coreutils::MString, __mysql *> sessions;
|
||||||
std::map<coreutils::MString, coreutils::MString> headers;
|
std::map<coreutils::MString, coreutils::MString> headers;
|
||||||
std::map<coreutils::MString, coreutils::MString> tags;
|
std::map<coreutils::MString, coreutils::MString> tags;
|
||||||
|
|||||||
@ -36,11 +36,7 @@ namespace jet {
|
|||||||
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
|
coreutils::ZString contentLength(getenv("CONTENT_LENGTH"));
|
||||||
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
|
coreutils::ZString contentType(getenv("CONTENT_TYPE"));
|
||||||
|
|
||||||
if(contentType == "multipart/form-data")
|
formdata = new coreutils::CGIFormData(0, contentType, contentLength, boundary);
|
||||||
coreutils::IMFMultipart postdata(0, "");
|
|
||||||
|
|
||||||
// else if(contentType == "application/x-www-form-urlencoded")
|
|
||||||
// global.setupFormURLEncoded(postdata);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
processContainer(container, NULL, true);
|
processContainer(container, NULL, true);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user