2016-03-28 12 views
0

C++を使用してCGIプログラムを作成しましたが、multipart/form-dataを使用して暗号化されたデータは取得されません。multipart/form-dataのフォームからデータを取得できませんでした

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. 

私はx-www-urlencodedを使用してみました、それが動作しますが、それはフォームの入力を受け取ることができます:ここで私は一言で言えば、それを実行しようとしました方法です。しかし、何とかそれはmultipart/form-dataで何も読まないでしょう。

答えて

0

修正済みです! 私はstd::getline()から得た各行を登録しなければなりません!!

char delim (10); // the delimiter 
std::string inps; // will store the result 

while (std::getline(std::cin, inps, delim)) { /* push_back string to a vector */ } 

// then this will interpret the result. 
+0

すぐにもう一度確認します。 ;) –

関連する問題