diff --git a/src/http.cpp b/src/http.cpp index b0c8dca..1105ec3 100644 --- a/src/http.cpp +++ b/src/http.cpp @@ -194,6 +194,7 @@ return_call API::http::request_common(const http_method &meth, { // TODO: Test form submit. // TODO: Change maptoformdata() and so on. + ttdebug << "Size of HTMLForm is " << formdata->size() << '\n'; formdata->prepareSubmit(request); } diff --git a/src/mastodon-cpp.cpp b/src/mastodon-cpp.cpp index a43b1c0..0d66b86 100644 --- a/src/mastodon-cpp.cpp +++ b/src/mastodon-cpp.cpp @@ -113,6 +113,8 @@ const string API::maptostr(const parameters &map, const bool &firstparam) unique_ptr API::maptoformdata(const parameters &map) { + ttdebug << "Transforming Mastodon::parameters to Poco::Net::HTMLForm.\n"; + unique_ptr formdata = make_unique(HTMLForm::ENCODING_MULTIPART); @@ -124,6 +126,7 @@ unique_ptr API::maptoformdata(const parameters &map) for (const auto &it : map) { string key = it.key; + ttdebug << "Processing \"" + key + "\".\n"; // TODO: Test nested parameters. if (const size_t pos = key.find('.') != string::npos)