so I wrote a CGI program using C++ but it won't get any data that's encrypted using multipart/form-data
. Here's how I tried to do it in a nutshell:
char delim (10); // the delimiter
std::string inps; // will store the result
while (std::getline(std::cin, inps, delim)) { /* do nothing? just read the input in loop */ }
// then this will interpret the result.
I tried using x-www-urlencoded
and it works (http://ift.tt/1ogv9PA), it can receive the form input. But somehow it won't read anything with multipart/form-data
(http://ift.tt/1LTYlHx). Any idea?
Aucun commentaire:
Enregistrer un commentaire