more cgi processing multiform work.
This commit is contained in:
1 parent
b774e50b59
commit
bd5223ca36
5 files changed
+44
-5
No files matched your search
+7
-1
@@ -8,16 +8,22 @@ namespace coreutils {
|
||||
IMFMultipart::IMFMultipart(int fd, MString boundary) {
|
||||
int ch = 0;
|
||||
int rc = 0;
|
||||
std::cout << "020" << std::endl;
|
||||
while((ch != '\r') && (ch != '\n')) {
|
||||
rc = ::read(fd, &ch, 1);
|
||||
if((ch != '\r') && (ch != '\n'))
|
||||
std::cout << (char)ch;
|
||||
boundary.write(ch);
|
||||
}
|
||||
if(ch == '\r') {
|
||||
std::cout << std::endl;
|
||||
rc = ::read(fd, &ch, 1);
|
||||
}
|
||||
while(1) {
|
||||
sections.emplace_back(fd, boundary);
|
||||
std::cout << "021: " << boundary << std::endl;
|
||||
IMFFormData *formData = new IMFFormData(fd, boundary);
|
||||
std::cout << "022" << std::endl;
|
||||
|
||||
rc = ::read(fd, &ch, 1);
|
||||
if(ch == '-') {
|
||||
rc = ::read(fd, &ch, 1);
|
||||
|
||||
Reference in new issue
Block a user