summaryrefslogtreecommitdiff
path: root/ucb/source/ucp/ftp/ftpurl.cxx
diff options
context:
space:
mode:
authorAndreas Bille <abi@openoffice.org>2002-10-15 12:04:04 +0000
committerAndreas Bille <abi@openoffice.org>2002-10-15 12:04:04 +0000
commit213448a74eeb03bd61a9caa6ec0ee2a215638063 (patch)
tree774ea10192cd4f2ec4aa242b0c68b3fe6426cc62 /ucb/source/ucp/ftp/ftpurl.cxx
parentc75a754e5916abcf020e38af6021c6e773c952e7 (diff)
#100904# Added support for several calls to interactionhandler
Diffstat (limited to 'ucb/source/ucp/ftp/ftpurl.cxx')
-rw-r--r--ucb/source/ucp/ftp/ftpurl.cxx34
1 files changed, 31 insertions, 3 deletions
diff --git a/ucb/source/ucp/ftp/ftpurl.cxx b/ucb/source/ucp/ftp/ftpurl.cxx
index 32ab5943ec7d..84b687dc1008 100644
--- a/ucb/source/ucp/ftp/ftpurl.cxx
+++ b/ucb/source/ucp/ftp/ftpurl.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: ftpurl.cxx,v $
*
- * $Revision: 1.5 $
+ * $Revision: 1.6 $
*
- * last change: $Author: abi $ $Date: 2002-10-15 09:21:17 $
+ * last change: $Author: abi $ $Date: 2002-10-15 13:04:04 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -189,7 +189,9 @@ void FTPURL::parse(const rtl::OUString& url)
const char* p2 = aIdent.getStr();
- if(strncmp("ftp://",p2,6))
+ rtl::OString lower = aIdent.toAsciiLowerCase();
+ if(lower.getLength() >= 6 &&
+ strncmp("ftp://",lower.getStr(),6))
throw malformed_exception();
p2 += 6;
@@ -644,3 +646,29 @@ FTPDirentry FTPURL::direntry() const
}
return aDirentry;
}
+
+
+extern "C" {
+
+ size_t memory_read(void *ptr,size_t size,size_t nmemb, void *stream)
+ {
+ return 0;
+ }
+
+}
+
+
+void FTPURL::insert(bool replaceExisting) const
+ throw(curl_exception)
+{
+ CURL *curl = m_pFCP->handle();
+
+ SET_CONTROL_CONTAINER;
+ curl_easy_setopt(curl,CURLOPT_NOBODY,TRUE); // no data => no transfer
+
+ rtl::OUString url(ident(false,true));
+ SET_URL(url);
+ curl_easy_setopt(curl,CURLOPT_POSTQUOTE,0);
+
+ CURLcode err;
+}