<?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[FTP Client]]></title><description><![CDATA[<p>Ich mal ne Frage: Hat vielleicht irgendjemand ne Ahnung wie man unter Windows einen FTP Client schreibt. Es wäre gut wenn dabei nicht die MFC benutzt würden. Links zu Tutorials wären sehr willkommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/147398/ftp-client</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Jul 2026 18:27:48 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/147398.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 16 May 2006 13:26:25 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to FTP Client on Tue, 16 May 2006 13:26:25 GMT]]></title><description><![CDATA[<p>Ich mal ne Frage: Hat vielleicht irgendjemand ne Ahnung wie man unter Windows einen FTP Client schreibt. Es wäre gut wenn dabei nicht die MFC benutzt würden. Links zu Tutorials wären sehr willkommen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058898</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058898</guid><dc:creator><![CDATA[PsychoticStyx]]></dc:creator><pubDate>Tue, 16 May 2006 13:26:25 GMT</pubDate></item><item><title><![CDATA[Reply to FTP Client on Tue, 16 May 2006 13:38:28 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Schau dir mal die FTP Funktionen der WinInet Api an: <a href="http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/ftp_sessions.asp" rel="nofollow">http://msdn.microsoft.com/library/default.asp?url=/library/en-us/wininet/wininet/ftp_sessions.asp</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058904</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058904</guid><dc:creator><![CDATA[WebNubbi]]></dc:creator><pubDate>Tue, 16 May 2006 13:38:28 GMT</pubDate></item><item><title><![CDATA[Reply to FTP Client on Tue, 16 May 2006 14:29:40 GMT]]></title><description><![CDATA[<p>Danke da steht ja eigentlich schon alles drinnen was man wissen muss. Da Werde ich mich jetzt mal dransetzen. Auf jeden Fall Danke für die schnelle Antwort!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1058954</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1058954</guid><dc:creator><![CDATA[PsychoticStyx]]></dc:creator><pubDate>Tue, 16 May 2006 14:29:40 GMT</pubDate></item><item><title><![CDATA[Reply to FTP Client on Tue, 16 May 2006 15:46:55 GMT]]></title><description><![CDATA[<p>Also ich hab das jetzt mal ausprobiert. Das Verbinden mit dem Internet und dem Server funktioniert auch, aber das Runterladen einer Datei schlägt fehl. Ich habe für den Versuch mit dem FTP Protokoll einen anonymen FTP Server genommen. Ich stelle jetzt einfach mal den Code hier hin vielleicht sieht einer was ich ändern muss. (Die wininet.lib ist auch eingebunden.)</p>
<p>#include &quot;stdafx.h&quot;<br />
#include &lt;windows.h&gt;<br />
#include &lt;winbase.h&gt;<br />
#include &lt;wininet.h&gt;<br />
#include &lt;string&gt;<br />
#include &lt;iostream&gt;<br />
#include &lt;vector&gt;</p>
<p>using namespace std;<br />
bool Initialisierung(HINTERNET &amp;hInt, HINTERNET &amp;hVer);<br />
void VerbindungenSchliessen(HINTERNET &amp;hInt, HINTERNET &amp;hVer);<br />
bool DateiRunterladen(HINTERNET &amp;hInt, HINTERNET &amp;hVer);</p>
<p>int main(int argc, char* argv[])<br />
{<br />
HINTERNET hInt, hVer;<br />
if(Initialisierung(hInt, hVer)) DateiRunterladen(hInt, hVer);<br />
VerbindungenSchliessen(hInt, hVer);</p>
<p>system(&quot;Pause&quot;);</p>
<p>return 0;<br />
}</p>
<p>bool Initialisierung(HINTERNET &amp;hInt, HINTERNET &amp;hVer)<br />
{<br />
hInt = InternetOpen(&quot;MeinFTP&quot;, INTERNET_OPEN_TYPE_DIRECT, NULL, NULL, INTERNET_FLAG_ASYNC);<br />
if(hInt == NULL) {<br />
cout&lt;&lt;&quot;InternetOpen fehlgeschlagen.&quot;&lt;&lt;endl;<br />
return false;<br />
}<br />
hVer = InternetConnect(hInt, &quot;<a href="http://ftp.tu-cottbus.de" rel="nofollow">ftp.tu-cottbus.de</a>&quot;, INTERNET_DEFAULT_FTP_PORT,<br />
NULL, NULL, INTERNET_SERVICE_FTP, INTERNET_FLAG_PASSIVE, NULL);<br />
if(hVer == NULL) {<br />
cout&lt;&lt;&quot;InternetConnect fehlgeschlagen.&quot;&lt;&lt;endl;<br />
return false;<br />
}</p>
<p>return true;<br />
}</p>
<p>void VerbindungenSchliessen(HINTERNET &amp;hInt, HINTERNET &amp;hVer)<br />
{<br />
InternetCloseHandle(hVer);<br />
InternetCloseHandle(hInt);<br />
}</p>
<p>bool DateiRunterladen(HINTERNET &amp;hInt, HINTERNET &amp;hVer)<br />
{<br />
bool rueck = FtpGetFile(hVer, &quot;search software.html&quot;, &quot;Empfangen.html&quot;, 0,<br />
FILE_ATTRIBUTE_NORMAL, FTP_TRANSFER_TYPE_BINARY, NULL);<br />
if(rueck == false) {<br />
cout&lt;&lt;&quot;Runterladen fehlgeschlagen.&quot;&lt;&lt;endl;<br />
DWORD a = GetLastError();<br />
cout&lt;&lt;a&lt;&lt;endl;<br />
}<br />
return rueck;<br />
}</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059004</guid><dc:creator><![CDATA[PsychoticStyx]]></dc:creator><pubDate>Tue, 16 May 2006 15:46:55 GMT</pubDate></item><item><title><![CDATA[Reply to FTP Client on Tue, 16 May 2006 16:23:51 GMT]]></title><description><![CDATA[<p>Die Datei auf deinem Server heist nicht &quot;search software.html&quot; sondern &quot;search_software.html&quot;. Sowas kannste ganz einfach rausfinden wenn du auch noch die Nachricht vom FTP Server dir anzeigen lässt:</p>
<pre><code class="language-cpp">char msg[1024];
        DWORD size = sizeof(msg);
        InternetGetLastResponseInfo(&amp;a, msg, &amp;size);
        cout &lt;&lt; &quot;Server sagt: &quot; &lt;&lt; a &lt;&lt; &quot; und &quot; &lt;&lt; msg &lt;&lt; endl;
</code></pre>
<p>mfg.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059028</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059028</guid><dc:creator><![CDATA[joomoo]]></dc:creator><pubDate>Tue, 16 May 2006 16:23:51 GMT</pubDate></item><item><title><![CDATA[Reply to FTP Client on Wed, 17 May 2006 14:14:48 GMT]]></title><description><![CDATA[<p>Ja stimmt... Das lag daran, dass Firefox auf dem FTP Server alles unterstrichen hat und man dann nicht den Unterstrich sehen konnte. Wie auch immer Vielen Dank für die Info und das du dir auch den Server angeguckt hast!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059608</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059608</guid><dc:creator><![CDATA[PsychoticStyx]]></dc:creator><pubDate>Wed, 17 May 2006 14:14:48 GMT</pubDate></item><item><title><![CDATA[Reply to FTP Client on Wed, 17 May 2006 15:05:33 GMT]]></title><description><![CDATA[<p>Ich habe noch eine letzte Frage: Ich würde gerne den FTP Client einen ProxyServer benutzen lassen und hab mal nach welchen gesucht, aber keine gefunden. hat vielleicht jemand ne Liste mit FTP Proxies oder ne Quelle?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1059648</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1059648</guid><dc:creator><![CDATA[PsychoticStyx]]></dc:creator><pubDate>Wed, 17 May 2006 15:05:33 GMT</pubDate></item></channel></rss>