There is a way to iterate through query using cpp-netlib ?

4 views
Skip to first unread message

s3gmenta...@gmail.com

unread,
May 3, 2018, 12:17:53 AM5/3/18
to The C++ Network Library
for example:

        boost::network::uri::uri instance("http://example.com/?a=b");
        assert(instance.has_query());

        for (auto qit = instance.query_begin(); qit != instance.query_end(); ++qit)
                cout << "key=" << qit.first << "; value=" << qit.second << endl; /* expected output: "key=a; value=b" */
Reply all
Reply to author
Forward
0 new messages