summaryrefslogtreecommitdiff
path: root/src/HttpRequestCommand.cc
diff options
context:
space:
mode:
authorTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-17 18:51:12 +0000
committerTatsuhiro Tsujikawa <tatsuhiro.t@gmail.com>2006-02-17 18:51:12 +0000
commit2c732211f45b4caea3f569971905f176887b4a4a (patch)
treeb86f8ec0803c8f66ec08756b2bc69db09caa0461 /src/HttpRequestCommand.cc
parent8acb1181f9b6879b9520a824d1e15fa0dd889624 (diff)
* Added HTTPS support.
* Added SocketCore. Socket is now handle class for SocketCore. * Fixed bug in ChunkedEncoding: expanding buffer size is wrong * Fixed bug in DownloadCommand: In Chunked Encoding, it wrongly adds to Segment.ds buff length from the socket.
Diffstat (limited to 'src/HttpRequestCommand.cc')
-rw-r--r--src/HttpRequestCommand.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/HttpRequestCommand.cc b/src/HttpRequestCommand.cc
index 6405f78d..078b11f1 100644
--- a/src/HttpRequestCommand.cc
+++ b/src/HttpRequestCommand.cc
@@ -36,6 +36,12 @@ HttpRequestCommand::~HttpRequestCommand() {}
bool HttpRequestCommand::executeInternal(Segment seg) {
socket->setNonBlockingMode();
+#ifdef HAVE_LIBSSL
+ // for SSL
+ if(req->getProtocol() == "https") {
+ socket->initiateSecureConnection();
+ }
+#endif // HAVE_LIBSSL
HttpConnection httpConnection(cuid, socket, e->option, e->logger);
// set seg to request in order to remember the request range
req->seg = seg;