<?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 Request]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich suche eine Lib für C++, bei der ich optimalerweise(!) eine Funktion hätte, mit der ich eine Webseite eingebe, und deren Quelltext als String zurückbekomme.</p>
<p>Gibt es sowas? Optimal wäre sowas:</p>
<p>string quelltext = getquelltext(&quot;<a href="http://www.c-plusplus.net/forum/" rel="nofollow">http://www.c-plusplus.net/forum/</a>&quot;);</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/220982/http-request</link><generator>RSS for Node</generator><lastBuildDate>Sat, 19 Sep 2026 11:15:28 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/220982.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 23 Aug 2008 20:30:22 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 20:30:22 GMT]]></title><description><![CDATA[<p>Hi!</p>
<p>Ich suche eine Lib für C++, bei der ich optimalerweise(!) eine Funktion hätte, mit der ich eine Webseite eingebe, und deren Quelltext als String zurückbekomme.</p>
<p>Gibt es sowas? Optimal wäre sowas:</p>
<p>string quelltext = getquelltext(&quot;<a href="http://www.c-plusplus.net/forum/" rel="nofollow">http://www.c-plusplus.net/forum/</a>&quot;);</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570264</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570264</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sat, 23 Aug 2008 20:30:22 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 20:37:35 GMT]]></title><description><![CDATA[<p>Dafür brauchst du keine extra Bibliothek. Wenn du per Socket eine Anfrage an einen Webserverstellst, dann bekommst du als Antwort ganz automatisch den HTML Quelltext der Seite geliefert. In C wird die Antwort klassischerweise in einen Puffer-Array geschrieben. Du könntest das natürlich auch in einen String schreiben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570267</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570267</guid><dc:creator><![CDATA[Berufspenner]]></dc:creator><pubDate>Sat, 23 Aug 2008 20:37:35 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 20:39:47 GMT]]></title><description><![CDATA[<p><a href="http://curl.haxx.se/libcurl/" rel="nofollow">libcurl</a> zum Beispiel. Es gibt sogar C++-Bindings auf der Seite, wenn du kein C haben willst.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570268</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570268</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Sat, 23 Aug 2008 20:39:47 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 20:40:06 GMT]]></title><description><![CDATA[<p>Dann muss ich mich aber erst in Sockets einarbeiten. Da würde mir eine kleine Lib besser gefallen. Ein Aufruf und die Sache ist getan. Denn ich denke, bis ich das mit Sockets geschnallt habe...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570269</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570269</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sat, 23 Aug 2008 20:40:06 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 20:41:39 GMT]]></title><description><![CDATA[<p>Berufspenner schrieb:</p>
<blockquote>
<p>Dafür brauchst du keine extra Bibliothek. Wenn du per Socket eine Anfrage an einen Webserverstellst, dann bekommst du als Antwort ganz automatisch den HTML Quelltext der Seite geliefert. In C wird die Antwort klassischerweise in einen Puffer-Array geschrieben. Du könntest das natürlich auch in einen String schreiben.</p>
</blockquote>
<p>Ganz so einfach ist's nicht. Du musst den Server auch noch ganz lieb fragen:</p>
<blockquote>
<p>GET /forum HTTP/1.1<br />
Host: <a href="http://www.c-plusplus.net" rel="nofollow">www.c-plusplus.net</a></p>
</blockquote>
]]></description><link>https://www.c-plusplus.net/forum/post/1570270</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570270</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Sat, 23 Aug 2008 20:41:39 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 20:49:45 GMT]]></title><description><![CDATA[<p>.filmor schrieb:</p>
<blockquote>
<p>Berufspenner schrieb:</p>
<blockquote>
<p>Dafür brauchst du keine extra Bibliothek. Wenn du per Socket eine Anfrage an einen Webserverstellst, dann bekommst du als Antwort ganz automatisch den HTML Quelltext der Seite geliefert. In C wird die Antwort klassischerweise in einen Puffer-Array geschrieben. Du könntest das natürlich auch in einen String schreiben.</p>
</blockquote>
<p>Ganz so einfach ist's nicht. Du musst den Server auch noch ganz lieb fragen:</p>
<blockquote>
<p>GET /forum HTTP/1.1<br />
Host: <a href="http://www.c-plusplus.net" rel="nofollow">www.c-plusplus.net</a></p>
</blockquote>
</blockquote>
<p>Das war bzw. ist mir schon klar <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /> Natürlich ist da vorher noch einiges zu tun.</p>
<p>@edii<br />
Um überhaupt eine Antwort von einem Webserver zu bekommen, musst du ihn vorher erstmal ansprechen und bis du überhaupt dazu kommst wirst du noch einiges in deinem Programm machen müssen. Schließlich musst du ja erstmal eine Verbindung aufbauen, etc. pp. und dafür wirst du an Sockets oder ähnlichem nicht vorbei kommen. Selbst libcurl will noch etwas Vorarbeit.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570273</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570273</guid><dc:creator><![CDATA[Berufspenner]]></dc:creator><pubDate>Sat, 23 Aug 2008 20:49:45 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 20:59:42 GMT]]></title><description><![CDATA[<p>libcurl sieht vernünfigt aus, aber fast schon zu umfangreich.<br />
Im Manual stehen viele Dinge, einfache Programme. Aber wie finde ich heraus, wo steht, wie man den Quelltext einer Seite bekommt?</p>
<p>Ich mein, sowas sieht ja toll aus, aber es steht nicht wirklich dabei, was es macht...außer &quot;getinfo&quot;.</p>
<pre><code class="language-cpp">/*****************************************************************************
 *                                  _   _ ____  _
 *  Project                     ___| | | |  _ \| |
 *                             / __| | | | |_) | |
 *                            | (__| |_| |  _ &lt;| |___
 *                             \___|\___/|_| \_\_____|
 *
 * $Id: getinfo.c,v 1.2 2004/11/22 16:24:46 bagder Exp $
 */

#include &lt;stdio.h&gt;
#include &lt;curl/curl.h&gt;

int main(void)
{
  CURL *curl;
  CURLcode res;

  /* http://curl.haxx.se/libcurl/c/curl_easy_init.html */
  curl = curl_easy_init();
  if(curl) {
    /* http://curl.haxx.se/libcurl/c/curl_easy_setopt.html#CURLOPTURL */
    curl_easy_setopt(curl, CURLOPT_URL, &quot;curl.haxx.se&quot;);
    /* http://curl.haxx.se/libcurl/c/curl_easy_perform.html */
    res = curl_easy_perform(curl);

    if(CURLE_OK == res) {
      char *ct;
      /* ask for the content-type */
      /* http://curl.haxx.se/libcurl/c/curl_easy_getinfo.html */
      res = curl_easy_getinfo(curl, CURLINFO_CONTENT_TYPE, &amp;ct);

      if((CURLE_OK == res) &amp;&amp; ct)
        printf(&quot;We received Content-Type: %s\n&quot;, ct);
    }

    /* always cleanup */
    /* http://curl.haxx.se/libcurl/c/curl_easy_cleanup.html */
    curl_easy_cleanup(curl);
  }
  return 0;
}
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1570282</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570282</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sat, 23 Aug 2008 20:59:42 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 21:06:58 GMT]]></title><description><![CDATA[<p>Erwarte hier kein Fastfood. Du musst dich da einarbeiten.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570285</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570285</guid><dc:creator><![CDATA[Berufspenner]]></dc:creator><pubDate>Sat, 23 Aug 2008 21:06:58 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 21:17:59 GMT]]></title><description><![CDATA[<p>sieht wohl so aus.<br />
Danke, wenigstens bin ich schon mal bei cURL, werde das schon herbekommen. CU</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570289</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570289</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sat, 23 Aug 2008 21:17:59 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 21:32:59 GMT]]></title><description><![CDATA[<p>Standardmäßig schreibt das Ding in stdout, aber <a href="http://curl.haxx.se/libcurl/c/libcurl-tutorial.html" rel="nofollow">hier</a> wird erklärt, wie du das änderst. Deine geforderte Funktion sähe mit libcurl also in etwa so aus:</p>
<pre><code class="language-cpp">#include &lt;string&gt;
#include &lt;stdexcept&gt;
#include &lt;curl/curl.h&gt;

namespace
{
    size_t write_to_string (void *buffer, size_t size, size_t nmemb, void *userp)
    {
        // möglicherweise auch nmemb statt size, ich mach nicht so viel C ;)
        std::string result (reinterpret_cast&lt;const char*&gt;(buffer), size);
        reinterpret_cast&lt;std::string*&gt;(userp)-&gt;append(result);
        return size;
    }
}

std::string getquelltext (std::string const&amp; url)
{
    CURL *curl;
    CURLcode res;

    std::string out;

    curl = curl_easy_init();

    if (!curl) throw std::runtime_error(&quot;CURL kaputt&quot;);

    curl_easy_setopt(curl, CURLOPT_URL, url.c_str());
    curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, &amp;write_to_string);
    curl_easy_setopt(curl, CURLOPT_WRITEDATA, reinterpret_cast&lt;void*&gt;(&amp;out));

    res = curl_easy_perform(curl);

    if(res != CURLE_OK) throw std::runtime_error(&quot;Ne, dat hat nicht geklappt.&quot;);

    curl_easy_cleanup(curl);

    return out;
}
</code></pre>
<p>/edit: Na toll, Penner, jetzt hast du ihn verscheucht. Und wer soll jetzt meinen Code testen?!</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570290</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570290</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Sat, 23 Aug 2008 21:32:59 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 21:44:11 GMT]]></title><description><![CDATA[<p>.filmor schrieb:</p>
<blockquote>
<p>/edit: Na toll, Penner, jetzt hast du ihn verscheucht. Und wer soll jetzt meinen Code testen?!</p>
</blockquote>
<p>Tja, das wirst du wohl auch selber machen müssen ;)...mein Gott, warum sind denn hier immer alle so faul und wollen, dass andere ihre Arbeit machen?! <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f644.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--face_with_rolling_eyes"
      title=":rolling_eyes:"
      alt="🙄"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570292</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570292</guid><dc:creator><![CDATA[Berufspenner]]></dc:creator><pubDate>Sat, 23 Aug 2008 21:44:11 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 21:45:33 GMT]]></title><description><![CDATA[<p>keine angst, ich bin noch da...<br />
Schau mir jetzt dein Zeug an, geb auch Rückmeldung wenn ich was hab</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570293</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570293</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sat, 23 Aug 2008 21:45:33 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 21:47:38 GMT]]></title><description><![CDATA[<p>Unter Windows kann man, der WinAPI sei dank, auch einfach &quot;URLDownloadToFile&quot; aufrufen <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/1570294</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570294</guid><dc:creator><![CDATA[Badestrand]]></dc:creator><pubDate>Sat, 23 Aug 2008 21:47:38 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 21:57:19 GMT]]></title><description><![CDATA[<p>Mist, ich scheine Linkerfehler zu haben.<br />
Benutze Visual Studio, habe in den Include Ordner den ordner curl reingetan, indem sich curl.h befindet, das sollte passen. Aber wie linke ich richtig in visual studio?</p>
<p>Projekt-Eigenschaften-Linker...oder bin ich da falsch?</p>
<p>Meine Fehler sind:</p>
<pre><code>Fehler	1	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__curl_easy_cleanup&quot; in Funktion &quot;&quot;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl getquelltext(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)&quot; (?getquelltext@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV12@@Z)&quot;.	main.obj	
Fehler	2	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__curl_easy_perform&quot; in Funktion &quot;&quot;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl getquelltext(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)&quot; (?getquelltext@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV12@@Z)&quot;.	main.obj	
Fehler	3	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__curl_easy_setopt&quot; in Funktion &quot;&quot;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl getquelltext(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)&quot; (?getquelltext@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV12@@Z)&quot;.	main.obj	
Fehler	4	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__curl_easy_init&quot; in Funktion &quot;&quot;class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; __cdecl getquelltext(class std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt; const &amp;)&quot; (?getquelltext@@YA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV12@@Z)&quot;.	main.obj	
Fehler	5	fatal error LNK1120: 4 nicht aufgelöste externe Verweise.	C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2005\Projects\httprequest\Debug\httprequest.exe	1
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1570296</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570296</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sat, 23 Aug 2008 21:57:19 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sat, 23 Aug 2008 22:01:04 GMT]]></title><description><![CDATA[<p>ich muss ja laut Dokumentation</p>
<pre><code>curl-config --libs
</code></pre>
<p>linken, aber es fragt mich bei Visual Studio nach .lib Dateien...wo trage ich da so eine Zeile ein?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570300</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570300</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sat, 23 Aug 2008 22:01:04 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 06:50:38 GMT]]></title><description><![CDATA[<p><a href="http://blog.magnetk.com/2007/07/27/libcurl-on-windows-with-visual-studio-2005/" rel="nofollow">Zweiter Eintrag zu „libcurl windows“</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570336</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570336</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Sun, 24 Aug 2008 06:50:38 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 08:56:34 GMT]]></title><description><![CDATA[<p>Badestrand schrieb:</p>
<blockquote>
<p>Unter Windows kann man, der WinAPI sei dank, auch einfach &quot;URLDownloadToFile&quot; aufrufen <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>
</blockquote>
<p>und unter Linux &quot;wget&quot;</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570356</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570356</guid><dc:creator><![CDATA[Paul Manns]]></dc:creator><pubDate>Sun, 24 Aug 2008 08:56:34 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 10:12:31 GMT]]></title><description><![CDATA[<p>Paul Manns schrieb:</p>
<blockquote>
<p>und unter Linux &quot;wget&quot;</p>
</blockquote>
<p>Nicht nur unter Linux.</p>
<p><a href="http://gnuwin32.sourceforge.net/packages/wget.htm" rel="nofollow">http://gnuwin32.sourceforge.net/packages/wget.htm</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570387</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570387</guid><dc:creator><![CDATA[wgetter]]></dc:creator><pubDate>Sun, 24 Aug 2008 10:12:31 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 10:14:54 GMT]]></title><description><![CDATA[<p>wgetter schrieb:</p>
<blockquote>
<p>Paul Manns schrieb:</p>
<blockquote>
<p>und unter Linux &quot;wget&quot;</p>
</blockquote>
<p>Nicht nur unter Linux.</p>
<p><a href="http://gnuwin32.sourceforge.net/packages/wget.htm" rel="nofollow">http://gnuwin32.sourceforge.net/packages/wget.htm</a></p>
</blockquote>
<p>sry <img
      src="https://www.c-plusplus.net/forum/plugins/nodebb-plugin-emoji/emoji/emoji-one/1f609.png?v=ab1pehoraso"
      class="not-responsive emoji emoji-emoji-one emoji--winking_face"
      title=";)"
      alt="😉"
    /></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570388</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570388</guid><dc:creator><![CDATA[Paul Manns]]></dc:creator><pubDate>Sun, 24 Aug 2008 10:14:54 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 11:27:32 GMT]]></title><description><![CDATA[<p>ich bekomms ums verrecken nicht her, die kack lib dazuzulinken, so eine scheiße.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570409</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570409</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sun, 24 Aug 2008 11:27:32 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 11:38:19 GMT]]></title><description><![CDATA[<p>Hast du dir den Link angesehen?<br />
Dort wird's ziemlich genau beschrieben.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570415</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570415</guid><dc:creator><![CDATA[.filmor]]></dc:creator><pubDate>Sun, 24 Aug 2008 11:38:19 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 11:48:03 GMT]]></title><description><![CDATA[<p>versuch mal <code>#pragma comment(lib, &quot;xyz.lib&quot;)</code> im Quellcode... Also für xyz.lib natürlich den richtigen Namen...</p>
<p>Alternativ wär es auf der linken seite im &quot;Projektmappen-Explorer&quot; nen rechtsklick auf dein Projekt gewesen und dann hinzufügen etc...</p>
<p>bb und gl ; )</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570422</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570422</guid><dc:creator><![CDATA[unskilled]]></dc:creator><pubDate>Sun, 24 Aug 2008 11:48:03 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 13:01:41 GMT]]></title><description><![CDATA[<p>ja, da wirds ziemlich gut beschrieben.</p>
<p>Allerdings reicht mir ziemlich gut wohl wieder mal nicht:</p>
<p>Ich hab Alles was drin stand gemacht, außer das mit der .proj datei hab ich nicht verstanden. Die lib hab ich heruntergeladen, aber da steht nur &quot;im Linker dazulinken&quot;, was ich nicht verstehe.</p>
<p>Folgende Errors hab ich momentan.</p>
<pre><code>Fehler	2	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__CrtDbgReportW&quot; in Funktion &quot;&quot;public: char const &amp; __thiscall std::basic_string&lt;char,struct std::char_traits&lt;char&gt;,class std::allocator&lt;char&gt; &gt;::operator[](unsigned int)const &quot; (??A?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@QBEABDI@Z)&quot;.	main.obj	
Fehler	3	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__CrtDbgReportW&quot;.	libcpmtd.lib	
Fehler	4	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__CrtDbgReportW&quot;.	libcpmtd.lib	
Fehler	5	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__WSACleanup@0&quot; in Funktion &quot;_win32_cleanup&quot;.	curllib.lib	
Fehler	6	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSACleanup@0&quot;.	curllib.lib	
Fehler	7	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__WSAStartup@8&quot; in Funktion &quot;_win32_init&quot;.	curllib.lib	
Fehler	8	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAStartup@8&quot;.	curllib.lib	
Fehler	9	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__closesocket@4&quot;.	curllib.lib	
Fehler	10	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__closesocket@4&quot;.	curllib.lib	
Fehler	11	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__closesocket@4&quot;.	curllib.lib	
Fehler	12	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__closesocket@4&quot; in Funktion &quot;_conn_free&quot;.	curllib.lib	
Fehler	13	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__closesocket@4&quot;.	curllib.lib	
Fehler	14	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__closesocket@4&quot;.	curllib.lib	
Fehler	15	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__closesocket@4&quot;.	curllib.lib	
Fehler	16	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot;.	curllib.lib	
Fehler	17	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot; in Funktion &quot;_ftp_state_use_port&quot;.	curllib.lib	
Fehler	18	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot;.	curllib.lib	
Fehler	19	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot;.	curllib.lib	
Fehler	20	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot;.	curllib.lib	
Fehler	21	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot;.	curllib.lib	
Fehler	22	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot;.	curllib.lib	
Fehler	23	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSAGetLastError@0&quot;.	curllib.lib	
Fehler	24	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__recv@16&quot; in Funktion &quot;_Curl_getinfo&quot;.	curllib.lib	
Fehler	25	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__recv@16&quot;.	curllib.lib	
Fehler	26	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__inet_ntoa@4&quot; in Funktion &quot;_inet_ntop4&quot;.	curllib.lib	
Fehler	27	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__htons@4&quot; in Funktion &quot;_Curl_he2ai&quot;.	curllib.lib	
Fehler	28	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__htons@4&quot;.	curllib.lib	
Fehler	29	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__htons@4&quot;.	curllib.lib	
Fehler	30	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__gethostbyname@4&quot; in Funktion &quot;_gethostbyname_thread@4&quot;.	curllib.lib	
Fehler	31	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__WSASetLastError@4&quot; in Funktion &quot;_gethostbyname_thread@4&quot;.	curllib.lib	
Fehler	32	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__WSASetLastError@4&quot;.	curllib.lib	
Fehler	33	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__socket@12&quot; in Funktion &quot;_init_resolve_thread&quot;.	curllib.lib	
Fehler	34	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__socket@12&quot;.	curllib.lib	
Fehler	35	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__socket@12&quot;.	curllib.lib	
Fehler	36	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__inet_addr@4&quot; in Funktion &quot;_Curl_getaddrinfo&quot;.	curllib.lib	
Fehler	37	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__inet_addr@4&quot;.	curllib.lib	
Fehler	38	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__inet_addr@4&quot;.	curllib.lib	
Fehler	39	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;___WSAFDIsSet@8&quot; in Funktion &quot;_Curl_socket_ready&quot;.	curllib.lib	
Fehler	40	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__select@20&quot; in Funktion &quot;_Curl_socket_ready&quot;.	curllib.lib	
Fehler	41	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__ntohs@4&quot; in Funktion &quot;_Curl_SOCKS4&quot;.	curllib.lib	
Fehler	42	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__ntohs@4&quot;.	curllib.lib	
Fehler	43	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__ntohs@4&quot;.	curllib.lib	
Fehler	44	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__send@16&quot; in Funktion &quot;_Curl_plain_send&quot;.	curllib.lib	
Fehler	45	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__send@16&quot;.	curllib.lib	
Fehler	46	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__ioctlsocket@12&quot; in Funktion &quot;_Curl_nonblock&quot;.	curllib.lib	
Fehler	47	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__getsockname@12&quot; in Funktion &quot;_bindlocal&quot;.	curllib.lib	
Fehler	48	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__getsockname@12&quot;.	curllib.lib	
Fehler	49	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__bind@12&quot; in Funktion &quot;_bindlocal&quot;.	curllib.lib	
Fehler	50	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__bind@12&quot;.	curllib.lib	
Fehler	51	error LNK2001: Nicht aufgelöstes externes Symbol &quot;__imp__bind@12&quot;.	curllib.lib	
Fehler	52	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__getsockopt@20&quot; in Funktion &quot;_verifyconnect&quot;.	curllib.lib	
Fehler	53	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__setsockopt@20&quot; in Funktion &quot;_tcpnodelay&quot;.	curllib.lib	
Fehler	54	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__getprotobyname@4&quot; in Funktion &quot;_tcpnodelay&quot;.	curllib.lib	
Fehler	55	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__connect@12&quot; in Funktion &quot;_singleipconnect&quot;.	curllib.lib	
Fehler	56	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__timeGetTime@0&quot; in Funktion &quot;_gettimeofday&quot;.	curllib.lib	
Fehler	57	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__accept@12&quot; in Funktion &quot;_AllowServerConnect&quot;.	curllib.lib	
Fehler	58	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__listen@8&quot; in Funktion &quot;_ftp_state_use_port&quot;.	curllib.lib	
Fehler	59	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__sendto@24&quot; in Funktion &quot;_tftp_rx&quot;.	curllib.lib	
Fehler	60	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__imp__recvfrom@24&quot; in Funktion &quot;_Curl_tftp&quot;.	curllib.lib	
Fehler	61	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__malloc_dbg&quot; in Funktion &quot;&quot;void * __cdecl operator new(unsigned int,struct std::_DebugHeapTag_t const &amp;,char *,int)&quot; (??2@YAPAXIABU_DebugHeapTag_t@std@@PADH@Z)&quot;.	libcpmtd.lib	
Fehler	62	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__free_dbg&quot; in Funktion &quot;&quot;void __cdecl operator delete(void *,struct std::_DebugHeapTag_t const &amp;,char *,int)&quot; (??3@YAXPAXABU_DebugHeapTag_t@std@@PADH@Z)&quot;.	libcpmtd.lib	
Fehler	63	error LNK2019: Verweis auf nicht aufgelöstes externes Symbol &quot;__calloc_dbg&quot; in Funktion &quot;__Getctype&quot;.	libcpmtd.lib	
Fehler	64	fatal error LNK1120: 31 nicht aufgelöste externe Verweise.	C:\Dokumente und Einstellungen\Administrator\Eigene Dateien\Visual Studio 2005\Projects\httprequest\Debug\httprequest.exe
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1570468</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570468</guid><dc:creator><![CDATA[edii]]></dc:creator><pubDate>Sun, 24 Aug 2008 13:01:41 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 24 Aug 2008 13:17:30 GMT]]></title><description><![CDATA[<p>In the linker section add curllib.lib, ws2_32.lib, winmm.lib</p>
<p>sprich: in deinen compileroptionen.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1570476</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1570476</guid><dc:creator><![CDATA[elise]]></dc:creator><pubDate>Sun, 24 Aug 2008 13:17:30 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Sun, 28 Jun 2009 17:21:15 GMT]]></title><description><![CDATA[<p>edii schrieb:</p>
<blockquote>
<p>ich bekomms ums verrecken nicht her, die kack lib dazuzulinken, so eine scheiße.</p>
</blockquote>
<p>Mir geht es ähnlich.<br />
Erhalte auch:<br />
https.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__curl_easy_cleanup<br />
https.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__curl_easy_perform<br />
https.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__curl_easy_setopt<br />
https.obj : error LNK2001: Nichtaufgeloestes externes Symbol __imp__curl_easy_init</p>
<p>Habe schon #pragma comment(lib,&quot;curllib.lib&quot;)<br />
und #define CURL_STATICLIB usw.<br />
ausprobiert und bei den Projekteinstellungen curllib.lib ws2_32.lib winmm.lib addiert, aber es will einfach nicht <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/1734190</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1734190</guid><dc:creator><![CDATA[user4711]]></dc:creator><pubDate>Sun, 28 Jun 2009 17:21:15 GMT</pubDate></item><item><title><![CDATA[Reply to HTTP Request on Mon, 29 Jun 2009 03:09:42 GMT]]></title><description><![CDATA[<p>Es gibt da noch ne alternative zu libcurl, die nur den quelltext einer URL downloaded. nennt sich URLDownloadToFile().</p>
<p>Hier ein beispiel:</p>
<pre><code class="language-cpp">#include &lt;Urlmon.h&gt;

#pragma comment(lib,&quot;Urlmon.lib&quot;)

#ifdef __cplusplus
extern &quot;C&quot; {
#endif 

std::string adress = &quot;www.google.at&quot;;
std::string file = &quot;derquellcode.txt&quot;;
HRESULT res = 0;

URLDownloadToFile(NULL, reinterpret_cast&lt;LPCSTR&gt;(adress.c_str()), reinterpret_cast&lt;LPCSTR&gt;(file.c_str()), NULL, NULL);

return res;
};

#ifdef __cplusplus
}
#endif
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1734328</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1734328</guid><dc:creator><![CDATA[Neo Gandar]]></dc:creator><pubDate>Mon, 29 Jun 2009 03:09:42 GMT</pubDate></item></channel></rss>