diff options
Diffstat (limited to 'src/mgr/curlftpt.cpp')
-rw-r--r-- | src/mgr/curlftpt.cpp | 20 |
1 files changed, 19 insertions, 1 deletions
diff --git a/src/mgr/curlftpt.cpp b/src/mgr/curlftpt.cpp index bb47958..91d8e82 100644 --- a/src/mgr/curlftpt.cpp +++ b/src/mgr/curlftpt.cpp @@ -1,7 +1,24 @@ /***************************************************************************** * CURLFTPTransport functions * + * + * + * Copyright 2009 CrossWire Bible Society (http://www.crosswire.org) + * CrossWire Bible Society + * P. O. Box 2528 + * Tempe, AZ 85280-2528 + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the + * Free Software Foundation version 2. + * + * This program is distributed in the hope that it will be useful, but + * WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + * */ + #include <curlftpt.h> @@ -109,7 +126,8 @@ char CURLFTPTransport::getURL(const char *destPath, const char *sourceURL, SWBuf if (session) { curl_easy_setopt(session, CURLOPT_URL, sourceURL); - curl_easy_setopt(session, CURLOPT_USERPWD, "ftp:installmgr@user.com"); + SWBuf credentials = u + ":" + p; + curl_easy_setopt(session, CURLOPT_USERPWD, credentials.c_str()); curl_easy_setopt(session, CURLOPT_WRITEFUNCTION, my_fwrite); if (!passive) curl_easy_setopt(session, CURLOPT_FTPPORT, "-"); |