Continued development...
This commit is contained in:
1 parent
c957bbbb6f
commit
50f6e972de
24 files changed
+243
-40
No files matched your search
@@ -0,0 +1,21 @@
|
||||
#include "IMFFormData.h"
|
||||
#include "IMFMessage.h"
|
||||
#include "IMFPlainText.h"
|
||||
|
||||
namespace coreutils {
|
||||
|
||||
IMFFormData::IMFFormData(PString &in, std::string boundary) : IMFMultipart(in, boundary) {
|
||||
|
||||
}
|
||||
|
||||
std::string IMFFormData::getByName(std::string name) {
|
||||
std::string value;
|
||||
for(PString section: sections) {
|
||||
IMFMessage message(section);
|
||||
IMFPlainText *text = (IMFPlainText *)message.getBody();
|
||||
std::cout << text->toString();
|
||||
}
|
||||
return value;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user