<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[libcurl und ftp Kommandos]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich versuche über libcurl einen ftp-server zu steuern. Ich würde dazu gern die Kommandos mkdir und cd benutzen.<br />
Im Inet habe ich dazu nicht wirklich viel gefunden. Hier mal meine Routine bis jetzt, es scheint aber nicht zu klappen. Hat jemand einen Tipp?</p>
<pre><code>...
	CURL *curl;
	CURLcode res;

	struct curl_slist* commands = NULL ;
	commands = curl_slist_append( commands , &quot;mkdir /tmp/test1&quot; ) ;

   	curl_global_init(CURL_GLOBAL_DEFAULT);
   	curl = curl_easy_init();

	if (curl)
	{
		curl_easy_setopt(curl, CURLOPT_URL, &quot;ftp://login:pwd@192.168.178.1/&quot;);
		curl_easy_setopt( curl , CURLOPT_QUOTE , commands ) ;
		res = curl_easy_perform(curl);
		curl_slist_free_all( commands ) ;

   		if(CURLE_OK != res) 
		{
			cout &lt;&lt; &quot;Curl Error.&quot; &lt;&lt; endl;
		}

		curl_easy_cleanup(curl);
	}
	curl_global_cleanup();
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/237009/libcurl-und-ftp-kommandos</link><generator>RSS for Node</generator><lastBuildDate>Wed, 23 Sep 2026 15:28:13 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/237009.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 23 Mar 2009 10:13:30 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to libcurl und ftp Kommandos on Mon, 23 Mar 2009 10:13:30 GMT]]></title><description><![CDATA[<p>Hallo zusammen,</p>
<p>ich versuche über libcurl einen ftp-server zu steuern. Ich würde dazu gern die Kommandos mkdir und cd benutzen.<br />
Im Inet habe ich dazu nicht wirklich viel gefunden. Hier mal meine Routine bis jetzt, es scheint aber nicht zu klappen. Hat jemand einen Tipp?</p>
<pre><code>...
	CURL *curl;
	CURLcode res;

	struct curl_slist* commands = NULL ;
	commands = curl_slist_append( commands , &quot;mkdir /tmp/test1&quot; ) ;

   	curl_global_init(CURL_GLOBAL_DEFAULT);
   	curl = curl_easy_init();

	if (curl)
	{
		curl_easy_setopt(curl, CURLOPT_URL, &quot;ftp://login:pwd@192.168.178.1/&quot;);
		curl_easy_setopt( curl , CURLOPT_QUOTE , commands ) ;
		res = curl_easy_perform(curl);
		curl_slist_free_all( commands ) ;

   		if(CURLE_OK != res) 
		{
			cout &lt;&lt; &quot;Curl Error.&quot; &lt;&lt; endl;
		}

		curl_easy_cleanup(curl);
	}
	curl_global_cleanup();
...
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1684685</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1684685</guid><dc:creator><![CDATA[tyrel]]></dc:creator><pubDate>Mon, 23 Mar 2009 10:13:30 GMT</pubDate></item></channel></rss>