5 #include <Poco/Logger.h>
6 #include <Poco/SharedPtr.h>
7 #include <Poco/Timespan.h>
9 #include <Poco/Net/HTTPClientSession.h>
10 #include <Poco/Net/HTTPRequest.h>
11 #include <Poco/Net/SocketAddress.h>
13 #include "net/HTTPEntireResponse.h"
14 #include "ssl/SSLClient.h"
31 Poco::Net::HTTPRequest& request,
33 const std::string& msg,
34 const Poco::Timespan& timeout = -1);
42 Poco::Net::HTTPRequest& request,
44 const std::string& msg,
45 SSLClient::Ptr sslConfig,
46 const Poco::Timespan& timeout = -1);
54 Poco::Net::HTTPRequest& request,
55 const std::string& host,
57 const std::string& msg,
58 const Poco::Timespan& timeout = -1);
66 Poco::Net::HTTPRequest& request,
67 const std::string& host,
69 const std::string& msg,
70 SSLClient::Ptr sslConfig,
71 const Poco::Timespan& timeout = -1);
75 Poco::SharedPtr<Poco::Net::HTTPClientSession> session,
76 Poco::Net::HTTPRequest& request,
77 const std::string& msg);
79 static Poco::Logger &logger();
Definition: HTTPEntireResponse.h:13
Definition: HTTPUtil.h:18
static HTTPEntireResponse makeRequest(Poco::Net::HTTPRequest &request, const Poco::URI &uri, const std::string &msg, const Poco::Timespan &timeout=-1)
Sends HTTP request to target defined by URI. It also sets URI path to the request. If the timeout is negative, it is not set.
Definition: HTTPUtil.cpp:11