Tag: poco libraries

Poco :: Net :: HTTPClientSession json数据内容types未收到

所以我正在开发一个服务器端Nodejs / expressjs应用程序和一个客户端c ++ / Poco应用程序。 我已经设法创build一个服务器托pipe和客户端之间的会话。 但是,任何时候我尝试发送我的JSON负载,express.js显示req.body为空。 Google除了Content-Type可能没有被正确传输外,并没有透露太多的东西。 我确实明确,但显然我错过了一步。 客户端 void upload(std::list<std::string>& args) { if (args.size() == 0 || args.front() == "–help") { help("upload"); return; } std::string repo = args.front(); args.pop_front(); std::string name, language; auto depends = getDepends(name, language); // start making the poco json object here Poco::JSON::Object obj; obj.set("name", name); obj.set("url", repo); Poco::URI […]