46 |
|
// |
47 |
|
// Douglas Thrift |
48 |
|
// |
49 |
< |
// $Id: HttpHandler.cpp,v 1.18 2003/07/11 07:54:46 douglas Exp $ |
49 |
> |
// $Id: HttpHandler.cpp,v 1.19 2003/07/15 08:01:00 douglas Exp $ |
50 |
|
|
51 |
|
#include "HttpHandler.h" |
52 |
|
|
79 |
|
|
80 |
|
length = 0; |
81 |
|
chunked = false; |
82 |
+ |
#ifdef _OpenSSL_ |
83 |
+ |
tls = false; |
84 |
+ |
#endif |
85 |
|
} |
86 |
|
|
87 |
|
HttpHandler::~HttpHandler() |
134 |
|
} |
135 |
|
|
136 |
|
putline("Accept: text/html; text/plain"); |
137 |
+ |
#ifndef _OpenSSL_ |
138 |
|
putline("User-Agent: " + agent(true) + ' ' + platform()); |
139 |
+ |
#else |
140 |
+ |
putline("User-Agent: " + agent(true) + ' ' + platform() + ' ' |
141 |
+ |
+ openssl(true)); |
142 |
+ |
#endif |
143 |
|
|
144 |
|
if (url.getPort() == 80) |
145 |
|
{ |
289 |
|
location = ""; |
290 |
|
page = ""; |
291 |
|
chunked = false; |
292 |
+ |
#ifdef _OpenSSL_ |
293 |
+ |
tls = false; |
294 |
+ |
#endif |
295 |
|
} |
296 |
|
|
297 |
|
void HttpHandler::populate() |