Questions tagged [poco-libraries]

The Poco C++ Libraries are modern open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems.

The Poco C++ Libraries are modern open source C++ class libraries and frameworks for building network- and internet-based applications that run on desktop, server and embedded systems.

736 questions
8
votes
2 answers

C++ cross platform for processes: is POCO lib good? other alternatives?

I would like to use some cross platform C++ library for starting, stopping and getting standard output for processes. I found and I would like to use C++ POCO libraries: are these good? What's the best alternatives? I use Boost and they have Boost…
Abruzzo Forte e Gentile
  • 14,423
  • 28
  • 99
  • 173
8
votes
1 answer

Async read from Poco HTTPClientSession

the usual sample code for using HTTPClientSession goes something like this: Poco::Net::HTTPClientSession session(uri.getHost(), uri.getPort()); std::ostream& ostr = session.sendRequest(req); // Receive the response. Poco::Net::HTTPResponse…
Aviad Rozenhek
  • 2,259
  • 3
  • 21
  • 42
8
votes
1 answer

Is Poco::Logger threadsafe?

It seems like threadsafe in my test code below. Can I use Poco::Logger in a multithreaded program? static Poco::Logger *pLogger; class MyRunnable : public Poco::Runnable { private: std::string _name; Poco::Random _rnd; public: …
Leajon
  • 209
  • 1
  • 4
  • 9
8
votes
2 answers

POCO : How to upload image to webser using poco in c++

I am trying to upload an image to remote web server. I have used HTMLForm and FilePartSource. I am able to successfully upload image to local sever (i.e. loclhost) but when i try to upload it in remote server, the response received from remote web…
user1918126
  • 81
  • 1
  • 2
7
votes
2 answers

Poco::HttpClientSession.receiveResponse() throws NoMessageException without any apparent reason

I wrote an HTTP server in Java and a client in C++ with Poco. This is a part of the C++ client code: URI uri("http://127.0.0.1:4444"); HTTPClientSession session(uri.getHost(), uri.getPort()); HTTPRequest req(HTTPRequest::HTTP_POST, …
Ori Popowski
  • 10,432
  • 15
  • 57
  • 79
7
votes
2 answers

How to build 32-bit Poco libraries on Mac OS?

I'd like to build 32-bit Poco libraries on Mac OS (since I have other fixed 32-bit dependencies). By default, Poco only builds for the x86_64 target, however. I tried building Poco like this (according to the Poco build…
Daniel Schuler
  • 3,130
  • 2
  • 30
  • 28
7
votes
1 answer

How do I solve memory leaks that are reported to reside in STL string?

For a school project, we have to send big files across the network., we must use Poco::XML for our data. After our files are send over the network, it appears that the memory does not free. Here is an example for a file of ~9 Mb on the receiving…
Tamara Wijsman
  • 12,198
  • 8
  • 53
  • 82
7
votes
2 answers

CMake: How do I change properties on subdirectory project targets?

I'm trying to organize the targets in my subproject (in this case poco), but I've come to find that properties can't be modified for ALIAS targets. I want the targets in my external project to be in their own folder, instead of sprawled out…
BleuGamer
  • 197
  • 2
  • 14
7
votes
2 answers

C++ linking to libraries with makefile (newbe)

I'm trying to understand how to use non standard libraries in my C++ projects. I have a few questions. Lets say I want to use POCO library. So I downloaded it and build it using make (static build). Now I have bunch of .o files and .h files. There…
Sebastian Dusza
  • 2,470
  • 2
  • 30
  • 54
7
votes
1 answer

CryptAcquireContext -- unresolved external

I'm linking with a third-party library (Poco C++) and getting the following unresolved symbol errors from the linker. It appears to be unable to find "CryptAcquireContextW", "CryptReleaseContext", and "CryptGenRandom". According to the Microsoft…
Bungles
  • 1,969
  • 2
  • 25
  • 54
7
votes
5 answers

Compile Poco with MinGW on Windows

I need to compile poco with MinGW so I can use it in Qt Creator but cannot figure out how to, I've managed to compile poco in Visual Studio but I cannot use those libraries in Qt Creator.
caboose0013
  • 327
  • 6
  • 9
7
votes
1 answer

HttpRequest PUT content in poco library

I want to send some data from a C++ application to a server using a HTTP PUT request. I am using poco library for networking in my application. I am using this code snippet: HTTPClientSession session(_uri.getHost(), _uri.getPort()); HTTPRequest…
Tamas Ionut
  • 4,240
  • 5
  • 36
  • 59
6
votes
1 answer

How to get started using Poco library?

I have the following files which I currently just want to manage to compile successfully. I have looked for a tutorial on how to use Poco, but unfortunately I couldn't find one for a complete beginner (I tried to follow the docs both under linux &…
oopsilon
  • 81
  • 2
  • 5
6
votes
4 answers

How to receive POST request content in Poco?

I've written a HTTP client in Poco which sends POST request to the HTTPServer Following is the snippet Poco::Net::HTTPClientSession s("127.0.0.1", 9090); Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_POST, "/echo"); std::string…
Abhinav
  • 191
  • 1
  • 3
  • 16
6
votes
1 answer

Looking for poco ssl websocket client example in C++ for Windows 7

I've been looking through the poco samples and documentation, but I couldn't find out how to use poco's websockets and SSL combined. I successfully connected a non-SSL websocket (based on the WebSocket class) to a server (the echoserver sample from…
Alex
  • 1,198
  • 2
  • 12
  • 26
1
2
3
49 50