<?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 zu langsam]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich habe eine ListBox in der jede Menge Ebay-Artikel Nummern stehen.<br />
Nun möchte ich möglichst schnell die zugehörigen Artikel-HTML Dateien und die Artikel Bilder nach C:\Temp runterladen. Leider dauert das ewig und ich weiss nicht wieso... Es dauert so lange das ich fast jede der Dateien von Hand runterladen könnte. Ich benutze die normale HTTP Komponente vom BCB 6 also nicht die Indy Komponente.</p>
<p>Kann mir jemand sagen wie ich das ganze beschleunigen könnte ?</p>
<p>Danke !</p>
<pre><code>// Hole HTML Seite des ersten Artikels
  http-&gt;Get(&quot;http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&amp;item=&quot;+ListBox1-&gt;Items-&gt;Strings[i]);
  Memo1-&gt;Text=http-&gt;Body;
  Body=http-&gt;Body;

  // Wenn es die Datei noch nicht gibt - speichern
 if (!FileExists(&quot;C:\\Temp\\&quot;+ListBox1-&gt;Items-&gt;Strings[i]))
  {
    Memo1-&gt;Lines-&gt;SaveToFile(&quot;C:\\Temp\\&quot;+ListBox1-&gt;Items-&gt;Strings[i]);

    // Bild Adresse finden
    result=http-&gt;Body;
    result=strstr(result.c_str(), &quot;SelfHosted_image.src = '&quot;);
    pos=result.Pos(&quot;';&quot;);
    pic=result.SubString(25,pos-25);

    // Bild Speichern
    String filename =&quot;C:\\Temp\\&quot;+ListBox1-&gt;Items-&gt;Strings[i]+&quot;.jpg&quot;;
    String URL = pic;
    TFileStream *fs = new TFileStream(filename, fmCreate);
    httpindy-&gt;Get(URL,fs);
    delete fs;

   }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/topic/90045/http-zu-langsam</link><generator>RSS for Node</generator><lastBuildDate>Tue, 07 Jul 2026 02:31:16 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/90045.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 25 Oct 2004 19:03:47 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Http zu langsam on Mon, 25 Oct 2004 19:03:47 GMT]]></title><description><![CDATA[<p>Hallo !</p>
<p>Ich habe eine ListBox in der jede Menge Ebay-Artikel Nummern stehen.<br />
Nun möchte ich möglichst schnell die zugehörigen Artikel-HTML Dateien und die Artikel Bilder nach C:\Temp runterladen. Leider dauert das ewig und ich weiss nicht wieso... Es dauert so lange das ich fast jede der Dateien von Hand runterladen könnte. Ich benutze die normale HTTP Komponente vom BCB 6 also nicht die Indy Komponente.</p>
<p>Kann mir jemand sagen wie ich das ganze beschleunigen könnte ?</p>
<p>Danke !</p>
<pre><code>// Hole HTML Seite des ersten Artikels
  http-&gt;Get(&quot;http://cgi.ebay.de/ws/eBayISAPI.dll?ViewItem&amp;item=&quot;+ListBox1-&gt;Items-&gt;Strings[i]);
  Memo1-&gt;Text=http-&gt;Body;
  Body=http-&gt;Body;

  // Wenn es die Datei noch nicht gibt - speichern
 if (!FileExists(&quot;C:\\Temp\\&quot;+ListBox1-&gt;Items-&gt;Strings[i]))
  {
    Memo1-&gt;Lines-&gt;SaveToFile(&quot;C:\\Temp\\&quot;+ListBox1-&gt;Items-&gt;Strings[i]);

    // Bild Adresse finden
    result=http-&gt;Body;
    result=strstr(result.c_str(), &quot;SelfHosted_image.src = '&quot;);
    pos=result.Pos(&quot;';&quot;);
    pic=result.SubString(25,pos-25);

    // Bild Speichern
    String filename =&quot;C:\\Temp\\&quot;+ListBox1-&gt;Items-&gt;Strings[i]+&quot;.jpg&quot;;
    String URL = pic;
    TFileStream *fs = new TFileStream(filename, fmCreate);
    httpindy-&gt;Get(URL,fs);
    delete fs;

   }
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/637391</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637391</guid><dc:creator><![CDATA[Hannah]]></dc:creator><pubDate>Mon, 25 Oct 2004 19:03:47 GMT</pubDate></item><item><title><![CDATA[Reply to Http zu langsam on Mon, 25 Oct 2004 20:58:08 GMT]]></title><description><![CDATA[<p>Der Flaschenhals dürfte der wie üblich saulangsame ebay-Server sein.<br />
Also nichts, was du beeinflussen kannst.</p>
<p>PS. Ggf. hilft es ja, das jeweils in Threads auszulagern, dann könntest du mehrere Downloads parallel laufen lassen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637470</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637470</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Mon, 25 Oct 2004 20:58:08 GMT</pubDate></item><item><title><![CDATA[Reply to Http zu langsam on Mon, 25 Oct 2004 21:18:29 GMT]]></title><description><![CDATA[<p>Ich hatte auch schon überlegt das man villeicht 10 HTTP Komponenten benutzt aber wie mache ich daß das die gleichzeitig laden ?</p>
<p>Kann ich einfach</p>
<pre><code>httpindy-&gt;Get(URL,fs);
httpindy1-&gt;Get(URL1,fs);
httpindy2-&gt;Get(URL2,fs);

.
.
.
httpindy9-&gt;Get(URL9,fs);
</code></pre>
<p>machen ?</p>
<p>Danke !</p>
]]></description><link>https://www.c-plusplus.net/forum/post/637499</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/637499</guid><dc:creator><![CDATA[Hannah]]></dc:creator><pubDate>Mon, 25 Oct 2004 21:18:29 GMT</pubDate></item><item><title><![CDATA[Reply to Http zu langsam on Wed, 03 Nov 2004 08:04:11 GMT]]></title><description><![CDATA[<p>Push <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f61e.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--disappointed_face"
      title=":("
      alt="😞"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/643313</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/643313</guid><dc:creator><![CDATA[Hannah]]></dc:creator><pubDate>Wed, 03 Nov 2004 08:04:11 GMT</pubDate></item><item><title><![CDATA[Reply to Http zu langsam on Wed, 03 Nov 2004 08:06:18 GMT]]></title><description><![CDATA[<p>Jansen schrieb:</p>
<blockquote>
<p>PS. Ggf. hilft es ja, das jeweils in Threads auszulagern, dann könntest du mehrere Downloads parallel laufen lassen.</p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/643315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/643315</guid><dc:creator><![CDATA[MFK]]></dc:creator><pubDate>Wed, 03 Nov 2004 08:06:18 GMT</pubDate></item><item><title><![CDATA[Reply to Http zu langsam on Thu, 04 Nov 2004 19:39:31 GMT]]></title><description><![CDATA[<p>Aber wie mache ich das ? <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /> <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f615.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--confused_face"
      title=":confused:"
      alt="😕"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/644871</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/644871</guid><dc:creator><![CDATA[Hannah]]></dc:creator><pubDate>Thu, 04 Nov 2004 19:39:31 GMT</pubDate></item><item><title><![CDATA[Reply to Http zu langsam on Fri, 05 Nov 2004 08:12:13 GMT]]></title><description><![CDATA[<p>Die Forensuche sollte dir zum Thread und Erstellung schon einiges bringen. Desweiteren solltest du dir das Thread-Beispiel im %BCB%\Examples-Ordner ansehen. Ebenfalls nützlich ist die Hilfe zu TThread.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/645126</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/645126</guid><dc:creator><![CDATA[PuppetMaster2k]]></dc:creator><pubDate>Fri, 05 Nov 2004 08:12:13 GMT</pubDate></item></channel></rss>