<?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[HTTP Download Datei größe anzeigen]]></title><description><![CDATA[<p>Hallo,</p>
<p>habe die hier in der FAQ gefunden und wollte mal wissen, ob man auch die größe der Datei ermitteln kann. Wen ja, Wie?</p>
<pre><code class="language-cpp">TFileStream *fs = new TFileStream(filename, fmCreate);
  IdHTTP1-&gt;Get(URL, fs);
  delete fs;
</code></pre>
<p>MFG Fregger</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/173522/http-download-datei-größe-anzeigen</link><generator>RSS for Node</generator><lastBuildDate>Fri, 14 Aug 2026 14:10:52 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/173522.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 16 Feb 2007 18:42:46 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 18:42:46 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>habe die hier in der FAQ gefunden und wollte mal wissen, ob man auch die größe der Datei ermitteln kann. Wen ja, Wie?</p>
<pre><code class="language-cpp">TFileStream *fs = new TFileStream(filename, fmCreate);
  IdHTTP1-&gt;Get(URL, fs);
  delete fs;
</code></pre>
<p>MFG Fregger</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229735</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229735</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Fri, 16 Feb 2007 18:42:46 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 18:50:35 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>Schau mal nach den Eigenschaften von TFileStream. Z.Bsp. Position könnte da helfen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229740</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229740</guid><dc:creator><![CDATA[Braunstein]]></dc:creator><pubDate>Fri, 16 Feb 2007 18:50:35 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 19:35:13 GMT]]></title><description><![CDATA[<p>Besser: sieh dir auch den Rest des FAQ-Beispieles an.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229766</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229766</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Fri, 16 Feb 2007 19:35:13 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 19:49:30 GMT]]></title><description><![CDATA[<p>Jansen was genau meinst du? In dem FAQ Beispiel steht nix drinne von einer Dateigröße. <a href="http://www.c-plusplus.net/forum/viewtopic-var-t-is-72486.html" rel="nofollow">http://www.c-plusplus.net/forum/viewtopic-var-t-is-72486.html</a> . Ich will ja herausbekommen wie groß die Datei ist bevor man sie herunterladet. Ich schau mir mal soweil die Funktionen von TFileStream an <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229770</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229770</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Fri, 16 Feb 2007 19:49:30 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 20:28:19 GMT]]></title><description><![CDATA[<p>Was könnte sich wohl hinter AWorkCountMax verstecken ...</p>
<p>Alternativ könnte es auch ein einfaches Get auf die URL tun (also ohne Stream), anschliessend wertet man dann IdHTTP::Response aus. Oder so ähnlich, habe keinen BCB zum Testen zur Hand.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229792</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229792</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Fri, 16 Feb 2007 20:28:19 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 21:02:32 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>er zeigt mir nur die Bytes bei AWorkCountMax an, wenn die Datei heruntergeladen worden ist. Geht es auch ohne vorherigen download?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229822</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229822</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:02:32 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 21:09:03 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p><em>AWorkCountMax</em> wird doch schon beim Event IdHTTP1Work<strong>Begin</strong> übergeben. Was du dann mit dem Wert machst ist dir überlassen.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229829</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229829</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:09:03 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 21:21:17 GMT]]></title><description><![CDATA[<p>Hallo akari,</p>
<p>ich will in meinem Programm eine Update funktion einbauen, dass Programm prüft ob neue Updates vorhanden sind. Wenn neue Updates vorhanden sind kommt ein fenster zum vorschein in dem ein Paar Informationen zu dem Update sind. Da will ich auch die Größe des Updates anzeigen lassen. Wenn ich nun das mit dem AWorkCountMax mache, ladet das Update schon herunter und dann erscheint erst die Größe des Updates. Ich will aber das man die Größe vorher sieht und dann auf den Button Update klicken soll, dass die Datei heruntergeladen wird.</p>
<p>Versteht ihr was ich meine?</p>
<p>MFG Fregger</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229839</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229839</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:21:17 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 21:30:37 GMT]]></title><description><![CDATA[<p>Hallo</p>
<p>soviel ich weiß ist das HTTP-Protokoll nicht in der Lage die größe eines Transfers im voraus auszugeben. Erst wenn der Download gestartet ist kann auch die Größe ermittelt werden. Das ist vor allem notwendig für dynamische Webseiten auf Basis von zum Beispiel php, wo ja erst beim konkreten Abruf eine echte HTML-Seite generiert wird undauch versendet wird.<br />
Wenn du wirklich feste Downloads mit vorheriger Größenangabe haben willst, must du FTP verwenden, denn genau dafür ist das <em>File Transfer Protokoll</em> da.</p>
<p>bis bald<br />
akari</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229849</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229849</guid><dc:creator><![CDATA[akari]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:30:37 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 21:41:32 GMT]]></title><description><![CDATA[<p>Danke akari, hab es jetzt über FTP gemacht und es funktioniert <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<pre><code class="language-cpp">Label1-&gt;Caption = IdFTP1-&gt;Size(&quot;Update.exe&quot;);
</code></pre>
<p>MFG Fregger</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229859</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229859</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:41:32 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 21:59:29 GMT]]></title><description><![CDATA[<p>FDP ist doof! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<pre><code class="language-cpp">IdHTTP1-&gt;Head(URL);
Caption = IdHTTP1-&gt;Response-&gt;ContentLength;
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1229864</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229864</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Fri, 16 Feb 2007 21:59:29 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Download Datei größe anzeigen on Fri, 16 Feb 2007 22:20:02 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p>FDP ist doof! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f642.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--slightly_smiling_face"
      title=":)"
      alt="🙂"
    /></p>
<pre><code class="language-cpp">IdHTTP1-&gt;Head(URL);
Caption = IdHTTP1-&gt;Response-&gt;ContentLength;
</code></pre>
</blockquote>
<p>hehe danke Jansen, so habe ich es auch Probiert, nur statt Head hatte ich Get benutzt :p dankeschön</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1229876</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1229876</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Fri, 16 Feb 2007 22:20:02 GMT</pubDate></item></channel></rss>