<?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[Daten aus URL holen]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>Ich will einen Browser für meinen Java Chat Schreiben und muss dazu eine Sessionid nach dem Login aus der URL Holen. In Java würde das so aussehen:</p>
<pre><code class="language-java">String s69 = &quot;http://127.0.0.1:8080/LOGIN?nick=blabla&amp;password=blabla&quot;;
URL Chat = new URL(s69);     
BufferedReader datainput = new BufferedReader(new InputStreamReader(Chat.openStream()));
String dataout;
              while((dataout = datainput.readLine()) != null)
              		{
              		if(dataout.toLowerCase().indexOf(&quot;sessionid=&quot;) &gt; 1)
              		{
              		ID = dataout.substring(dataout.indexOf(&quot;sessionid=&quot;) + 10);
              		ID = ID.substring(0,ID.indexOf(&quot;&amp;&quot;));
              			} 
              		}

System.out.println(&quot;Sessionid ist &quot; + ID);
</code></pre>
<p>Könnte mir jemand helfen den Code in C++ umzuschreiben?<br />
Hab keine ahnung wie ich anfangen soll.</p>
<p>MFG Fregger</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/136698/daten-aus-url-holen</link><generator>RSS for Node</generator><lastBuildDate>Sat, 01 Aug 2026 23:43:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/136698.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 12 Feb 2006 15:29:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Daten aus URL holen on Sun, 12 Feb 2006 15:29:05 GMT]]></title><description><![CDATA[<p>Hi Leute,</p>
<p>Ich will einen Browser für meinen Java Chat Schreiben und muss dazu eine Sessionid nach dem Login aus der URL Holen. In Java würde das so aussehen:</p>
<pre><code class="language-java">String s69 = &quot;http://127.0.0.1:8080/LOGIN?nick=blabla&amp;password=blabla&quot;;
URL Chat = new URL(s69);     
BufferedReader datainput = new BufferedReader(new InputStreamReader(Chat.openStream()));
String dataout;
              while((dataout = datainput.readLine()) != null)
              		{
              		if(dataout.toLowerCase().indexOf(&quot;sessionid=&quot;) &gt; 1)
              		{
              		ID = dataout.substring(dataout.indexOf(&quot;sessionid=&quot;) + 10);
              		ID = ID.substring(0,ID.indexOf(&quot;&amp;&quot;));
              			} 
              		}

System.out.println(&quot;Sessionid ist &quot; + ID);
</code></pre>
<p>Könnte mir jemand helfen den Code in C++ umzuschreiben?<br />
Hab keine ahnung wie ich anfangen soll.</p>
<p>MFG Fregger</p>
]]></description><link>https://www.c-plusplus.net/forum/post/992351</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992351</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Sun, 12 Feb 2006 15:29:05 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus URL holen on Sun, 12 Feb 2006 15:37:59 GMT]]></title><description><![CDATA[<p>Den HTML-Code kannst du mit einer HTTP-Komponente abholen, das Resultat parst du dann z.B. mit den AnsiString-Methoden.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/992358</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992358</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 12 Feb 2006 15:37:59 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus URL holen on Sun, 12 Feb 2006 17:44:15 GMT]]></title><description><![CDATA[<p>Habe versucht das mit der NMHTTP Komponente zu machen, leider ohne erfolg. Nach dem Login werde ich auf eine andere Seite weitergeleitet wo ich die Session erhalte. aber nach der weiterleitung erhalte ich keinen Body. Die Session steht ja dann auch nicht im Body sondern in der url bsp. ich logge mich eine mit /LOGIN?nick=blabla&amp;password=blabla dann werde ich weitergeleitet auf /CHAT?sessionid=ABCDEFGHIJKLMNOP.<br />
Ich muss nur diese Session auslesen was ich nach dem Login bekomme.</p>
]]></description><link>https://www.c-plusplus.net/forum/post/992444</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992444</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Sun, 12 Feb 2006 17:44:15 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus URL holen on Sun, 12 Feb 2006 18:07:09 GMT]]></title><description><![CDATA[<p>Suchfunktion benutzen!? Z.B.<br />
<a href="http://c-plusplus.net/forum/viewtopic-var-t-is-134367-and-highlight-is-redirect.html" rel="nofollow">http://c-plusplus.net/forum/viewtopic-var-t-is-134367-and-highlight-is-redirect.html</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/992458</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992458</guid><dc:creator><![CDATA[Jansen]]></dc:creator><pubDate>Sun, 12 Feb 2006 18:07:09 GMT</pubDate></item><item><title><![CDATA[Reply to Daten aus URL holen on Sun, 12 Feb 2006 22:13:16 GMT]]></title><description><![CDATA[<p>Danke, Hat sich erledigt. Mache es jetzt mit der Indy Komponente</p>
<p>MFG Fregger</p>
]]></description><link>https://www.c-plusplus.net/forum/post/992706</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/992706</guid><dc:creator><![CDATA[Fregger]]></dc:creator><pubDate>Sun, 12 Feb 2006 22:13:16 GMT</pubDate></item></channel></rss>