<?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[&amp;lt;wininet&amp;gt; senden von Daten wird vom Proxy nicht als solches erkannt (Timeout legt die Verbindung auf)]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich benutze die &quot;wininet.dll&quot;</p>
<p>und sende meine Daten wie folgt:</p>
<pre><code class="language-cpp">// Wenn die Verbindung ueber ein Proxy geht
hInet = InternetOpen(NULL, INTERNET_OPEN_TYPE_PRECONFIG, asPROXY.c_str(), asPROXYPORT.c_str(), 0);
....

	hConn = InternetConnect(hInet, asSERVER.c_str(), iPORT, &quot;&quot;, &quot;&quot;, INTERNET_SERVICE_HTTP, 0, 0);
		asURL = asURL + &quot;?strPass=&quot; + sPasswort + &quot;&amp;strUser=&quot; + asUser;
		hReq = HttpOpenRequest(hConn, &quot;POST&quot;, asURL.c_str(),                                                NULL,
									  NULL,  NULL,   INTERNET_FLAG_KEEP_CONNECTION |INTERNET_FLAG_TRANSFER_BINARY, 0);
		bSend = HttpSendRequest(hReq, asHeader.c_str(), strlen(asHeader.c_str()), asPostData.c_str(),
										strlen(asPostData.c_str()));

...
</code></pre>
<p>Es funktioniert alles, die Daten kommen auch an (vorrausgesetzt ich habe einen timeout im Proxy, welcher hoch genug ist.)<br />
Wenn ich meinen timeout z.B. auf 60 Sekunde setze (die Daten brauchen erheblich laenger) legt genau nach der Zeit der Proxy auf.</p>
<p>Es wird aber permanent etwas auf der Leitung gesendet, d.h. der timeout dürfte nicht kommen.</p>
<p>Was mache ich falsch ????</p>
<p>Vielen, vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/topic/109739/lt-wininet-gt-senden-von-daten-wird-vom-proxy-nicht-als-solches-erkannt-timeout-legt-die-verbindung-auf</link><generator>RSS for Node</generator><lastBuildDate>Tue, 30 Jun 2026 20:27:26 GMT</lastBuildDate><atom:link href="https://www.c-plusplus.net/forum/topic/109739.rss" rel="self" type="application/rss+xml"/><pubDate>Fri, 13 May 2005 07:52:26 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to &amp;lt;wininet&amp;gt; senden von Daten wird vom Proxy nicht als solches erkannt (Timeout legt die Verbindung auf) on Fri, 13 May 2005 07:54:20 GMT]]></title><description><![CDATA[<p>Hallo zusammen,<br />
ich benutze die &quot;wininet.dll&quot;</p>
<p>und sende meine Daten wie folgt:</p>
<pre><code class="language-cpp">// Wenn die Verbindung ueber ein Proxy geht
hInet = InternetOpen(NULL, INTERNET_OPEN_TYPE_PRECONFIG, asPROXY.c_str(), asPROXYPORT.c_str(), 0);
....

	hConn = InternetConnect(hInet, asSERVER.c_str(), iPORT, &quot;&quot;, &quot;&quot;, INTERNET_SERVICE_HTTP, 0, 0);
		asURL = asURL + &quot;?strPass=&quot; + sPasswort + &quot;&amp;strUser=&quot; + asUser;
		hReq = HttpOpenRequest(hConn, &quot;POST&quot;, asURL.c_str(),                                                NULL,
									  NULL,  NULL,   INTERNET_FLAG_KEEP_CONNECTION |INTERNET_FLAG_TRANSFER_BINARY, 0);
		bSend = HttpSendRequest(hReq, asHeader.c_str(), strlen(asHeader.c_str()), asPostData.c_str(),
										strlen(asPostData.c_str()));

...
</code></pre>
<p>Es funktioniert alles, die Daten kommen auch an (vorrausgesetzt ich habe einen timeout im Proxy, welcher hoch genug ist.)<br />
Wenn ich meinen timeout z.B. auf 60 Sekunde setze (die Daten brauchen erheblich laenger) legt genau nach der Zeit der Proxy auf.</p>
<p>Es wird aber permanent etwas auf der Leitung gesendet, d.h. der timeout dürfte nicht kommen.</p>
<p>Was mache ich falsch ????</p>
<p>Vielen, vielen Dank</p>
]]></description><link>https://www.c-plusplus.net/forum/post/787684</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/787684</guid><dc:creator><![CDATA[YLIREBUS]]></dc:creator><pubDate>Fri, 13 May 2005 07:54:20 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;lt;wininet&amp;gt; senden von Daten wird vom Proxy nicht als solches erkannt (Timeout legt die Verbindung auf) on Tue, 17 May 2005 11:18:01 GMT]]></title><description><![CDATA[<p><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/790042</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/790042</guid><dc:creator><![CDATA[YLIREBUS]]></dc:creator><pubDate>Tue, 17 May 2005 11:18:01 GMT</pubDate></item><item><title><![CDATA[Reply to &amp;lt;wininet&amp;gt; senden von Daten wird vom Proxy nicht als solches erkannt (Timeout legt die Verbindung auf) on Tue, 17 May 2005 21:33:09 GMT]]></title><description><![CDATA[<p>Vermutlich ignoriert der Proxy INTERNET_FLAG_KEEP_CONNECTION einfach <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=";D"
      alt="😉"
    /><br />
Zudem haben viele Webserver speziell bei Skript-Aufrufen festgelegte Timeouts...</p>
]]></description><link>https://www.c-plusplus.net/forum/post/790265</link><guid isPermaLink="true">https://www.c-plusplus.net/forum/post/790265</guid><dc:creator><![CDATA[geeky]]></dc:creator><pubDate>Tue, 17 May 2005 21:33:09 GMT</pubDate></item></channel></rss>