0
私は、認証用のパスポート付きの明示的なアプリを持っています。 私のアプリでは、Urdl enter link description hereをHTTPリクエストに使用しています。パスポート認証のためのurdlを持つhttp投稿
しかし、私はUrdl
urdl::istream is;
is.set_option(urdl::http::request_method("POST"));
is.set_option(urdl::http::request_content_type("text/plain"));
is.set_option(urdl::http::request_content("username=test&password=test"));
host = urdl::url::from_string(http://some/path, ec);
is.open(host);
でユーザー名とパスワードを渡すしたいと思います。しかし、それは私に私がカール
curl -X POST --data "username=test&password=test" http://some/path
で試してみて、それが働いている不正な要求(400) を与え、I良い答えを受け取った
私はUrdlの何が悪いのか分かりません。