Hello,
I'm have to keep the istream returned from HTTPClientSession.receiveResponse() as a member of my class (I read content from callbacks).
I've trouble finding the correct way of declaring the variable:
I tried with a Poco::SharedPtrstd::istream m_ansresponse;
and the m_ansresponse=&(httpclient.receiveResponse(response);
but after the d'tor of my class is done (apparently calling the release of the SharedPtr m_ansresponse), I get a crash in the d'tor of HTTPClientSession, also deleting the SharedPtr.
What's the correct way of doing this ?