Switch to unified view
a/libupnpp/control/httpdownload.cxx | b/libupnpp/control/httpdownload.cxx | ||
---|---|---|---|
... |
... |
||
41 | out->append((const char *)contents, realsize); |
41 | out->append((const char *)contents, realsize); |
42 | return realsize; |
42 | return realsize; |
43 | } |
43 | } |
44 | 44 | ||
45 | 45 | ||
46 | namespace UPnPClient { |
||
47 | |||
46 | bool downloadUrlWithCurl(const string& url, string& out, long timeoutsecs) |
48 | bool downloadUrlWithCurl(const string& url, string& out, long timeoutsecs) |
47 | { |
49 | { |
48 | CURL *curl; |
50 | CURL *curl; |
49 | CURLcode res; |
51 | CURLcode res; |
50 | bool ret = false; |
52 | bool ret = false; |
... |
... |
||
69 | } |
71 | } |
70 | curl_easy_cleanup(curl); |
72 | curl_easy_cleanup(curl); |
71 | 73 | ||
72 | return ret; |
74 | return ret; |
73 | } |
75 | } |
76 | |||
77 | } |