more cgi processing multiform work.

This commit is contained in:
Brad Arant committed 2025-03-17 16:45:34 -07:00
1 parent b774e50b59
commit bd5223ca36
5 files changed
+44 -5

No files matched your search

+9 -2
View File
@@ -9,6 +9,8 @@ namespace coreutils {
IMFHeaderField::IMFHeaderField(char &ch, int fd) {
int rc = 0;
std::cout << "050" << std::endl;
if((ch >= 'A') && (ch <= 'Z'))
key.write(ch);
@@ -17,6 +19,9 @@ namespace coreutils {
if(ch != ':')
key.write(ch);
}
std::cout << "051: " << key << std::endl;
rc = ::read(fd, &ch, 1);
while(ch == ' ')
rc = ::read(fd, &ch, 1);
@@ -25,8 +30,10 @@ namespace coreutils {
rc = ::read(fd, &ch, 1);
if(ch != '\r')
value.write(ch);
}
rc = ::read(fd, &ch, 1);
}
std::cout << "052: " << value << std::endl;
rc = ::read(fd, &ch, 1);
std::cout << "053" << std::endl;
}
}