10Duke Enterprise C++ Client
|
libcurl
based implementation of generic network services.
Classes | |
class | LibcurlURL |
Libcurl-based implementation of tenduke::net::URL. More... | |
class | LibCurlURLDecoder |
Libcurl implementation of tenduke::net::URLDecoder. More... | |
class | LibCurlURLEncoder |
Libcurl implementation of tenduke::net::URLEncoder. More... | |
class | LibCurlURLParser |
Libcurl implementation of tenduke::net::URLParser. More... | |
Functions | |
std::multimap< std::string, std::string > | parseQueryString (const char *queryString) |
Utility function to parse query string into a map. | |
std::string | urlDecode (CURL *curl, const char *encodedString, std::size_t len) |
Decodes given string using given CURL-handle. | |
std::multimap< std::string, std::string > tenduke::net::curl::parseQueryString | ( | const char * | queryString | ) |
Utility function to parse query string into a map.
queryString | the query string |
tenduke::net::URLException | if libcurl reported errors |
std::string tenduke::net::curl::urlDecode | ( | CURL * | curl, |
const char * | encodedString, | ||
std::size_t | len | ||
) |
Decodes given string using given CURL-handle.
This assumes that the encoded value decodes to e.g. UTF-8 encoded string.
curl | the CURL-handle |
encodedString | URL-encoded string |
len | length of the URL-encoded String |
tenduke::net::URLException | if the decoding failed |