<?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[Testen ob Internetseite online]]></title><description><![CDATA[<p>hallo,<br />
ich möchte irgendwie überprüfen ob eine Seite online ist. Also ob das Dokument noch besteht.<br />
wen ich das mit InternetCheckConnection machen geht das zwar, aber wen eine Fehlerseite kommt sagt mir die Funktion die Seite sei noch online.</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/106400/testen-ob-internetseite-online</link><generator>RSS for Node</generator><lastBuildDate>Mon, 29 Jun 2026 20:13:06 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/106400.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Apr 2005 14:22:37 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Testen ob Internetseite online on Sat, 09 Apr 2005 14:22:37 GMT]]></title><description><![CDATA[<p>hallo,<br />
ich möchte irgendwie überprüfen ob eine Seite online ist. Also ob das Dokument noch besteht.<br />
wen ich das mit InternetCheckConnection machen geht das zwar, aber wen eine Fehlerseite kommt sagt mir die Funktion die Seite sei noch online.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763004</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763004</guid><dc:creator><![CDATA[burnner]]></dc:creator><pubDate>Sat, 09 Apr 2005 14:22:37 GMT</pubDate></item><item><title><![CDATA[Reply to Testen ob Internetseite online on Sat, 09 Apr 2005 14:58:25 GMT]]></title><description><![CDATA[<p>wie sieht den die http response der fehlerseite aus? doch nicht '200 OK' oder?</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763020</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763020</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Sat, 09 Apr 2005 14:58:25 GMT</pubDate></item><item><title><![CDATA[Reply to Testen ob Internetseite online on Sat, 09 Apr 2005 15:03:50 GMT]]></title><description><![CDATA[<p>und wie bekomm ich den? Mit GetLastError hab ichs nicht geschafft</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763023</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763023</guid><dc:creator><![CDATA[burnner]]></dc:creator><pubDate>Sat, 09 Apr 2005 15:03:50 GMT</pubDate></item><item><title><![CDATA[Reply to Testen ob Internetseite online on Sat, 09 Apr 2005 15:29:34 GMT]]></title><description><![CDATA[<p>burnner schrieb:</p>
<blockquote>
<p>und wie bekomm ich den?</p>
</blockquote>
<p>na du schickst dem server ein http request (mit'm tcp/ip socket auf port 80) und dann bekommste 'ne antwort (http-header + daten). die erste zeile ist &quot;HTTP/1.0 200 OK\r\n&quot; wenn die seite da ist. guckst du: <a href="http://www.jmarshall.com/easy/http/" rel="nofollow">http://www.jmarshall.com/easy/http/</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/763037</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763037</guid><dc:creator><![CDATA[net 0]]></dc:creator><pubDate>Sat, 09 Apr 2005 15:29:34 GMT</pubDate></item><item><title><![CDATA[Reply to Testen ob Internetseite online on Sun, 10 Apr 2005 00:27:18 GMT]]></title><description><![CDATA[<p>hmm ok.. im moment kann ich nun verbindungen zu einem server aufbauen.. doch leider antwortet mir nicht jeder?!? (wobei die seiten erreichbar sind)</p>
<p>GET /path/file.html HTTP/1.1<br />
Host: <a href="http://www.host1.com" rel="nofollow">www.host1.com</a></p>
<p>so sieht das aus wo ich sende</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763315</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763315</guid><dc:creator><![CDATA[burnner]]></dc:creator><pubDate>Sun, 10 Apr 2005 00:27:18 GMT</pubDate></item><item><title><![CDATA[Reply to Testen ob Internetseite online on Sun, 10 Apr 2005 13:25:14 GMT]]></title><description><![CDATA[<p>Wenn du eh schon die WinInet-Funktionen (InternetCheckConnection) nutzt dürfte es auch so gehen:</p>
<pre><code class="language-cpp">HINTERNET hConn;
DWORD statusCode;
DWORD statusCodeSize;
DWORD headerIndex;

// iNet Verbindung aufbauen:
// InternetConnect(...)...

hConn=InternetOpenUrl(hInternet,&quot;http://www.beispiel.de/blupp.html&quot;,NULL,NULL,INTERNET_FLAG_RELOAD,NULL);
if (!hConn)
{
    // Verbindung konnte nicht hergestellt werden
}
else
{
   statusCodeSize=sizeof(DWORD);
   headerIndex=0;
       HttpQueryInfo(hConn,HTTP_QUERY_STATUS_CODE,&amp;statusCode,&amp;statusCodeSize,&amp;headerIndex);
   if (statusCode==HTTP_STATUS_OK)
   {
       // URL erfolgreich aufgerufen!
   }      
   InternetCloseHandle(hConn);
}

// iNet Verbindung schließen:
// InternetCloseHandle(...);
</code></pre>
<p>(Quellcode ungestestet!, evtl. müsste man mehr Status-Codes prüfen...)</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763508</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763508</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Sun, 10 Apr 2005 13:25:14 GMT</pubDate></item><item><title><![CDATA[Reply to Testen ob Internetseite online on Sun, 10 Apr 2005 18:24:42 GMT]]></title><description><![CDATA[<p>Hmm kann sein das das funktioniert.. Aber ich hab das nun mitm Winsock.. nun intersssiert mich nur warum einige Server nicht antworten (die Packete sind genau diesem wie im Firefox hab ich mit nem packsniffer angeschaut)</p>
<p>EDIT: PRoblem gelöst habn \r vergessen</p>
]]></description><link>https://www.c-plusplus.net/forum/post/763527</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/763527</guid><dc:creator><![CDATA[burnner]]></dc:creator><pubDate>Sun, 10 Apr 2005 18:24:42 GMT</pubDate></item></channel></rss>