<?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[NETWORK_CONNECTTIMEOUT with SSL]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">Trying to extend the network connect timeout, following this example:</p>
<pre><code class="language-cpp">  // This example retrieve the result from a POST and print it.
 
  maxon::Url theServer { "http://localhost:8080"_s };
 
  // Prepares the data that will be post
  maxon::String postData = "foo=bar&amp;bin=go"_s;
 
  theServer.Set(maxon::URLFLAGS::HTTP_POSTMETHOD, maxon::HTTPMETHOD::POST) iferr_return;
  theServer.Set(maxon::URLFLAGS::HTTP_POSTDATA, maxon::CString(postData, maxon::StringEncodings::Utf8())) iferr_return;
 
  maxon::BaseArray&lt;maxon::Char&gt; memReq;
 
  // Retrieves the answer and read it to memory
  iferr (maxon::FileUtilities::ReadFileToMemory(theServer, memReq))
    DiagnosticOutput("@", err);
 
  // Prints the answer from server
  ApplicationOutput("answer @", memReq);
 
  // Prints the answer as a string
  maxon::String result(memReq);
  ApplicationOutput("result @", result);
</code></pre>
<p dir="auto">Using the following works well on http localHost, but does not work with SSL (web https):</p>
<pre><code class="language-cpp"> theServer.Set(maxon::URLFLAGS::NETWORK_CONNECTTIMEOUT, maxon::Milliseconds(15 * 1000)) iferr_return;  // allow 15 seconds before timeout
        theServer.Set(maxon::URLFLAGS::NETWORK_SESSIONTIMEOUT, maxon::Milliseconds(15 * 1000)) iferr_return;
</code></pre>
<p dir="auto">How can we force the timeout extension when using SSL ? Currently it defaults to around 10 seconds. Also, for SSL, do we need to do anything other than setting the flags ?</p>
<p dir="auto">Thanks.</p>
]]></description><link>http://developers.maxon.net/forum/topic/16394/network_connecttimeout-with-ssl</link><generator>RSS for Node</generator><lastBuildDate>Sun, 09 Aug 2026 14:40:56 GMT</lastBuildDate><atom:link href="http://developers.maxon.net/forum/topic/16394.rss" rel="self" type="application/rss+xml"/><pubDate>Tue, 17 Mar 2026 15:46:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to NETWORK_CONNECTTIMEOUT with SSL on Thu, 19 Mar 2026 11:17:45 GMT]]></title><description><![CDATA[<p dir="auto">For now I am good. If I need further help, I will send the endpoint and function by email.</p>
]]></description><link>http://developers.maxon.net/forum/post/77094</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77094</guid><dc:creator><![CDATA[Rox]]></dc:creator><pubDate>Thu, 19 Mar 2026 11:17:45 GMT</pubDate></item><item><title><![CDATA[Reply to NETWORK_CONNECTTIMEOUT with SSL on Thu, 19 Mar 2026 08:54:22 GMT]]></title><description><![CDATA[<p dir="auto">Timeouts should not happen unless the endpoint is indeed timing out. But as I said, I cannot help you unless you give me compilable code (i.e., a little self contained function) with which I can reproduce your claims. If possible, please also share your endpoint as it obviously plays a major role in this problem.</p>
]]></description><link>http://developers.maxon.net/forum/post/77093</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77093</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Thu, 19 Mar 2026 08:54:22 GMT</pubDate></item><item><title><![CDATA[Reply to NETWORK_CONNECTTIMEOUT with SSL on Wed, 18 Mar 2026 22:54:24 GMT]]></title><description><![CDATA[<p dir="auto">Thank you for the snippet Ferdinand.<br />
Timeout do still happen, but less frequently now.</p>
]]></description><link>http://developers.maxon.net/forum/post/77092</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77092</guid><dc:creator><![CDATA[Rox]]></dc:creator><pubDate>Wed, 18 Mar 2026 22:54:24 GMT</pubDate></item><item><title><![CDATA[Reply to NETWORK_CONNECTTIMEOUT with SSL on Tue, 17 Mar 2026 17:06:24 GMT]]></title><description><![CDATA[<p dir="auto">Hey <a class="plugin-mentions-user plugin-mentions-a" href="/forum/user/rox">@<bdi>Rox</bdi></a>,</p>
<p dir="auto">Thank you for reaching out to us. Please provide a concrete executable code example as to what exactly <em>does not work with SSL</em>. I understand that you have put effort into make yourself understood, but in the current form it is very ambiguous what it not working for you.</p>
<p dir="auto">HTTPS methods surely work, we use them heavily internally, in all variants such as GET, POST, DELETE, etc. I looked at our code base and did not find an exact match for POSTing towards an HTTPs endpoint with a custom timeout, but found one for DELETEing.</p>
<p dir="auto">You can connect to an https URL without any extra steps. I am not quite sure what you would consider "setting the flags" in your code. Depending on the endpoint you want to reach, you might have to configure your headers though. <code>UrlInterface</code> is not a web framework which would automate these things for you.</p>
<p dir="auto">Here is some slightly obfuscated production code for posting towards an (https) endpoint:</p>
<pre><code class="language-cpp">Bool DoRequestPost(
	const maxon::String&amp; endpoint, const maxon::CString&amp; postData, Bool isFile = false, 
	maxon::DataDictionary* responseAsDict = nullptr, 
	maxon::BaseArray&lt;maxon::DataDictionary&gt;* responseAsArray = nullptr)
{			
	if (isFile)
	{
		additionalHeader.Set("Content-Type"_s, FormatString("multipart/form-data; boundary=@"_s, boundary)) iferr_cannot_fail("Cannot set content type"_s);
		additionalHeader.Set("Some-Token"_s, "no-check"_s) iferr_cannot_fail("Cannot set Some-Token"_s);
	}
	else
	{
		additionalHeader.Set("Content-Type"_s, "application/json"_s) iferr_cannot_fail("Cannot set content-type"_s);
		additionalHeader.Set("Accept"_s, "application/json"_s) iferr_cannot_fail("Cannot set accept datatype"_s);
	}
	url = maxon::Url();
	url.Set(maxon::URLFLAGS::HTTP_ADDITIONAL_REQUEST_HEADER, additionalHeader) iferr_cannot_fail("Cannot set additional headers"_s);
	url.Set(maxon::URLFLAGS::HTTP_POSTMETHOD, maxon::HTTPMETHOD::POST) iferr_cannot_fail("Cannot set httpmethod"_s);
	url.Set(maxon::URLFLAGS::HTTP_POSTDATA, postData) iferr_cannot_fail("Cannot set post data"_s);
	url.Set(maxon::URLFLAGS::HTTP_NO_PROXY_CACHING, true) iferr_cannot_fail("Cannot set NOPROXY");

	return DoRequest(endpoint, responseAsDict, responseAsArray);
}
</code></pre>
<p dir="auto">Cheers,<br />
Ferdinand</p>
]]></description><link>http://developers.maxon.net/forum/post/77090</link><guid isPermaLink="true">http://developers.maxon.net/forum/post/77090</guid><dc:creator><![CDATA[ferdinand]]></dc:creator><pubDate>Tue, 17 Mar 2026 17:06:24 GMT</pubDate></item></channel></rss>