<?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[HttpSendRequest ohne Antwort des Servers.]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich sende mit Hilfe der WinInet API XML-Daten an einen Web Server. Alle Daten erreichen den Server wie gewünscht.</p>
<pre><code class="language-cpp">HINTERNET hOpen,hConnect,hRequest;
hOpen = InternetOpen(&quot;TEST&quot;, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL ,0); 	hConnect = InternetConnect(hOpen,myAddr,80,&quot;&quot;,&quot;&quot;,INTERNET_SERVICE_HTTP,0,0);
hRequest = HttpOpenRequest(hConnect, &quot;POST&quot;, myPage, NULL, NULL, NULL, 0); 
HttpSendRequest(hRequest,NULL, 0, (LPVOID)myRequest.c_str() , len);
</code></pre>
<p>Das Problem ist, dass der Server keine Antwort zurückgibt. HttpSendRequest wartet ca. 30 Sec und melded dann: &quot;Script timeout: no response recieved from script&quot;.</p>
<p>Kann HttpSendRequest verwendet werden, ohne dass auf die Antwort des Servers gewartet wird? Oder kann der Timeout verkürzt werden?</p>
<p>danke für eure Hilfe,<br />
c</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/185066/httpsendrequest-ohne-antwort-des-servers</link><generator>RSS for Node</generator><lastBuildDate>Sun, 05 Jul 2026 16:08:47 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/185066.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Jun 2007 15:07:56 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to HttpSendRequest ohne Antwort des Servers. on Thu, 21 Jun 2007 15:07:56 GMT]]></title><description><![CDATA[<p>Hallo,</p>
<p>ich sende mit Hilfe der WinInet API XML-Daten an einen Web Server. Alle Daten erreichen den Server wie gewünscht.</p>
<pre><code class="language-cpp">HINTERNET hOpen,hConnect,hRequest;
hOpen = InternetOpen(&quot;TEST&quot;, INTERNET_OPEN_TYPE_PRECONFIG, NULL, NULL ,0); 	hConnect = InternetConnect(hOpen,myAddr,80,&quot;&quot;,&quot;&quot;,INTERNET_SERVICE_HTTP,0,0);
hRequest = HttpOpenRequest(hConnect, &quot;POST&quot;, myPage, NULL, NULL, NULL, 0); 
HttpSendRequest(hRequest,NULL, 0, (LPVOID)myRequest.c_str() , len);
</code></pre>
<p>Das Problem ist, dass der Server keine Antwort zurückgibt. HttpSendRequest wartet ca. 30 Sec und melded dann: &quot;Script timeout: no response recieved from script&quot;.</p>
<p>Kann HttpSendRequest verwendet werden, ohne dass auf die Antwort des Servers gewartet wird? Oder kann der Timeout verkürzt werden?</p>
<p>danke für eure Hilfe,<br />
c</p>
]]></description><link>https://www.c-plusplus.net/forum/post/1310789</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1310789</guid><dc:creator><![CDATA[Con2]]></dc:creator><pubDate>Thu, 21 Jun 2007 15:07:56 GMT</pubDate></item><item><title><![CDATA[Reply to HttpSendRequest ohne Antwort des Servers. on Thu, 21 Jun 2007 16:57:16 GMT]]></title><description><![CDATA[<p><a href="http://msdn2.microsoft.com/en-us/library/ms906347.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms906347.aspx</a></p>
]]></description><link>https://www.c-plusplus.net/forum/post/1310882</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1310882</guid><dc:creator><![CDATA[Http Guru [active]]]></dc:creator><pubDate>Thu, 21 Jun 2007 16:57:16 GMT</pubDate></item><item><title><![CDATA[Reply to HttpSendRequest ohne Antwort des Servers. on Fri, 22 Jun 2007 08:15:20 GMT]]></title><description><![CDATA[<p>[quote=&quot;Http Guru [active]&quot;]<a href="http://msdn2.microsoft.com/en-us/library/ms906347.aspx%5B/quote%5D" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms906347.aspx[/quote]</a><br />
HttpQueryInfo ließt Informationen des HTTP-Request aus, kann aber keine Werte setzen. Der Link hat mir aber geholfen, die richtige Funktion zu finden. Mit InternetSetOption kann der Timeout verkürzt werden.</p>
<pre><code class="language-cpp">DWORD Timeout = 50;
InternetSetOption(NULL,INTERNET_OPTION_RECEIVE_TIMEOUT , &amp;Timeout, sizeof(Timeout));
</code></pre>
]]></description><link>https://www.c-plusplus.net/forum/post/1311217</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/1311217</guid><dc:creator><![CDATA[Con2]]></dc:creator><pubDate>Fri, 22 Jun 2007 08:15:20 GMT</pubDate></item></channel></rss>