Uri support
- TransportCurl now supports non-anonymous ftp
This commit is contained in:
@@ -41,6 +41,12 @@ void TransportCurl::send(const std::string& source)
|
||||
if (uri.host == "")
|
||||
throw std::string ("when using the 'curl' protocol, the uri must contain a hostname.");
|
||||
|
||||
if (uri.user != "")
|
||||
{
|
||||
arguments.push_back("--user");
|
||||
arguments.push_back(uri.user);
|
||||
}
|
||||
|
||||
if (is_filelist(source))
|
||||
{
|
||||
std::string::size_type pos;
|
||||
@@ -96,6 +102,13 @@ void TransportCurl::recv(std::string target)
|
||||
if (uri.host == "")
|
||||
throw std::string ("when using the 'curl' protocol, the uri must contain a hostname.");
|
||||
|
||||
if (uri.user != "")
|
||||
{
|
||||
arguments.push_back("--user");
|
||||
arguments.push_back(uri.user);
|
||||
}
|
||||
|
||||
|
||||
if (is_filelist(uri.path))
|
||||
{
|
||||
std::string::size_type pos;
|
||||
|
||||
Reference in New Issue
Block a user