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
5
votes
2 answers

Poco c++Net: Http get headers from response

Im using POCO C++ Net libraries for http I want to try make a strategy for persistent caching. First of all I think I need to get expires from the cache headers and cross check with cached values (please tell me if I'm wrong). So how can I extract…
David Karlsson
  • 9,396
  • 9
  • 58
  • 103
5
votes
1 answer

C++ - Poco library in Qt Creator

I am trying to use the poco library in Qt Creator with one of the samples that came with poco, I have gotten this to work in Visual Studio 2012 but I keep getting build errors in Qt Creator. I have both .dll and .lib in my lib path. here is my .pro…
caboose0013
  • 327
  • 6
  • 9
4
votes
1 answer

How to read image content from an HTTP server response using Poco C++?

I am writing an HTTP client in C++ with Poco and there is a situation in which the server sends a response with a jpeg image content (in bytes). I need the client to process the response and generate a jpg image file from those bytes. I searched the…
Ori Popowski
  • 10,432
  • 15
  • 57
  • 79
4
votes
1 answer

C++ POCO - How to start a thread from the thread-pool while within a thread

I am using POCO default thread pool to start a event receiver thread which would listen for events. Once the event is received I need to process that event in a separate thread. Here is what I am trying to do but i couldn't start the event processor…
4
votes
1 answer

How to use the Poco C++ HTTPSessionFactory

How is the best, simplest way to set up the HTTPSessionFactory to handle both HTTP and HTTPS? I know that I need to use HTTPSessionInstantiators, but I could really use a short and sweet example. Thanks.
4
votes
2 answers

Poco HTTPServer connections still served after calling stop() and destructor

I am facing a problem using the Poco::HTTPServer. As descibed in the doc of TCPServer: After calling stop(), no new connections will be accepted and all queued connections will be discarded. Already served connections, however, will continue…
Michael
  • 98
  • 1
  • 9
4
votes
0 answers

Is read after EOF UB?

I try to combine Poco and boost::iostreams::filtering_stream and I found two problems: Poco::Net::HTTPChunkedStreamBuf::underflow returns EOF only once after session was closed. boost::iostreams::detail:indirect_streambuf::underflow: return value…
dahek
  • 41
  • 3
4
votes
1 answer

How to Fix the exception received from poco library?

When client create an instant on SenderThread. It can send data to and from. But when client goes for suspend mode and come back from suspend. The last created threads get exception on resume. and no data is sent. Exception Details received…
rim
  • 351
  • 2
  • 15
4
votes
1 answer

Poco::Path compiles with const wchar_t* but behaves unexpectedly

Working with Poco::Path I've found a very curious error. See following code: #include #include #include int main() { std::wstring a_path = L"c:\\temp"; //Poco::Path from_wstring(a_path); // ERROR: fails to…
cbuchart
  • 10,847
  • 9
  • 53
  • 93
4
votes
3 answers

C++ decode e-mail's subject

I've downloaded mails with Poco/Net/POP3ClientSession, I wanted to convert e-mail subject into human readable, so I tried to use neagoegab's solution from here: https://stackoverflow.com/a/8104496/1350091 unfortunately it doesn't work: #include…
baziorek
  • 2,502
  • 2
  • 29
  • 43
4
votes
4 answers

Poco library linking errors in ubuntu platform

I have downloaded the latest Poco library poco-1.7.3.tar. Configured with few properties and did make install. Tried the following sample helloworld program. #include #include class HelloPocoApplication :…
Kranthi
  • 195
  • 3
  • 13
4
votes
1 answer

How to copy Buffer bytes block in Poco C++?

Hi i am trying to write a TCP connection in poco. the client sends a packet with this fields : packetSize : int date : int ID : int so the first 4 bytes contains the packet size. in the receive side i have this code : int packetSize = 0; char…
4
votes
1 answer

Poco::Logger is not logging trace or debug level logs, only information level and above

I'm having an issue trying to enable poco_trace and poco_debug logging. I use Logger::setLevel() to set a level of PRIO_TRACE, but I still am not seeing anything of priority lower than PRIO_INFORMATION written to my logs. Here is the relevant…
MildWolfie
  • 2,492
  • 1
  • 16
  • 27
4
votes
1 answer

How do I create HTTP request with some parameters by POCO?

I'm a new User of POCO and could get HTTP response after HTTP::Request. By the way, How do I create HTTP request with some parameters? For example, I want to set URI, http://xxxx/index.html?name=hoge&id=fuga&data=foo. Of course I know it's possible…
jef
  • 3,890
  • 10
  • 42
  • 76
4
votes
2 answers

How to create and parse hierarchical/nested JSON with Poco C++?

Edited to simplify and show my EXACT code. I have the following data that I need to serialize to JSON as well as parse from JSON. string name; std::map metaData; I need the JSON to be nested/hierarchical like this: { …
Bungles
  • 1,969
  • 2
  • 25
  • 54