<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/</id><updated>2021-08-19T13:32:32.810000Z</updated><subtitle>Recent posts to Problem with WebClient / http post</subtitle><entry><title>Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/?limit=250#2708" rel="alternate"/><published>2021-08-19T13:32:32.810000Z</published><updated>2021-08-19T13:32:32.810000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com5d1d8e9c897451f59c2c7da1cd7f1763c9799f82</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi Bernie,&lt;/p&gt;
&lt;p&gt;You must read the outputs xDone, xBusy, xError &amp;amp; eError each cycle.&lt;br/&gt;
after that you can use them to influence the Client function block, eg like this example pseudo code&lt;/p&gt;
&lt;p&gt;IF xError THEN&lt;br/&gt;
    eErrMsg := Client.eError; // Store error message for further use&lt;br/&gt;
END_IF;&lt;br/&gt;
xExecute := xDone AND NOT xBusy AND NOT xError; // NOT xExecute will probably reset the client? See FB help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/?limit=250#6f9e" rel="alternate"/><published>2021-08-19T13:32:26.811000Z</published><updated>2021-08-19T13:32:26.811000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com6a71c373b8b20137606e7de10274dc499cd9539b</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi Bernie,&lt;/p&gt;
&lt;p&gt;You must read the outputs xDone, xBusy, xError &amp;amp; eError each cycle.&lt;br/&gt;
after that you can use them to influence the Client function block, eg like this example pseudo code&lt;/p&gt;
&lt;p&gt;IF xError THEN&lt;br/&gt;
    eErrMsg := Client.eError; // Store error message for further use&lt;br/&gt;
END_IF;&lt;br/&gt;
xExecute := xDone AND NOT xBusy AND NOT xError; // NOT xExecute will probably reset the client? See FB help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/?limit=250#28a1" rel="alternate"/><published>2021-08-19T13:32:25.887000Z</published><updated>2021-08-19T13:32:25.887000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.comb15ba22813ecdf6fca4640fd678bc3900dde6434</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi Bernie,&lt;/p&gt;
&lt;p&gt;You must read the outputs xDone, xBusy, xError &amp;amp; eError each cycle.&lt;br/&gt;
after that you can use them to influence the Client function block, eg like this example pseudo code&lt;/p&gt;
&lt;p&gt;IF xError THEN&lt;br/&gt;
    eErrMsg := Client.eError; // Store error message for further use&lt;br/&gt;
END_IF;&lt;br/&gt;
xExecute := xDone AND NOT xBusy AND NOT xError; // NOT xExecute will probably reset the client? See FB help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/?limit=250#3098" rel="alternate"/><published>2021-08-19T13:32:24.937000Z</published><updated>2021-08-19T13:32:24.937000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.com422122bef59fa3ee29896c73716ecc4f18cbbaa9</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi Bernie,&lt;/p&gt;
&lt;p&gt;You must read the outputs xDone, xBusy, xError &amp;amp; eError each cycle.&lt;br/&gt;
after that you can use them to influence the Client function block, eg like this example pseudo code&lt;/p&gt;
&lt;p&gt;IF xError THEN&lt;br/&gt;
    eErrMsg := Client.eError; // Store error message for further use&lt;br/&gt;
END_IF;&lt;br/&gt;
xExecute := xDone AND NOT xBusy AND NOT xError; // NOT xExecute will probably reset the client? See FB help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/?limit=250#638b" rel="alternate"/><published>2021-08-19T13:32:19.712000Z</published><updated>2021-08-19T13:32:19.712000Z</updated><author><name>h-hermsen</name><uri>https://forge.codesys.com/u/hermsen/</uri></author><id>https://forge.codesys.comfed283eae7f8ba8c8e2c146d9390ef5b55ad731c</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;hi Bernie,&lt;/p&gt;
&lt;p&gt;You must read the outputs xDone, xBusy, xError &amp;amp; eError each cycle.&lt;br/&gt;
after that you can use them to influence the Client function block, eg like this example pseudo code&lt;/p&gt;
&lt;p&gt;IF xError THEN&lt;br/&gt;
    eErrMsg := Client.eError; // Store error message for further use&lt;br/&gt;
END_IF;&lt;br/&gt;
xExecute := xDone AND NOT xBusy AND NOT xError; // NOT xExecute will probably reset the client? See FB help&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/?limit=25#e310" rel="alternate"/><published>2021-08-19T11:08:10.734000Z</published><updated>2021-08-19T11:08:10.734000Z</updated><author><name>bernie-bbq</name><uri>https://forge.codesys.com/u/bernie-bbq/</uri></author><id>https://forge.codesys.com6f14f37b05cd0b91296d146366ff2f0ff1413767</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;I have the ,exact same fault.... happens occasionally when sending API online via http &amp;amp; Jason.&lt;/p&gt;
&lt;p&gt;did anyone have an answer for this ?&lt;/p&gt;
&lt;p&gt;Thx&lt;/p&gt;
&lt;p&gt;BBQ&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Problem with WebClient / http post</title><link href="https://forge.codesys.com/forge/talk/Engineering/thread/899dfc91dd/?limit=25#27da" rel="alternate"/><published>2020-02-27T13:48:53.598000Z</published><updated>2020-02-27T13:48:53.598000Z</updated><author><name>golu</name><uri>https://forge.codesys.com/u/golu/</uri></author><id>https://forge.codesys.comc290329e4bad364221a7f872a9265ed02e71391a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Dear all,&lt;br/&gt;
I have a problem while using the WebClient package for sending Data to a server.&lt;br/&gt;
I have bought the WebClient library for sending Data via http.&lt;br/&gt;
I created a function block for the use of the webclient function with Basic Authentification.&lt;br/&gt;
Now, if I want to send the data (different temperature values) I have no problem to send the first data blocks, but after a various number of sent data I get a TCP INIT error. I have no explaination, why I get the TCP INIT error. I am using the same login data like in the function blocks before.&lt;/p&gt;
&lt;p&gt;Did anyone already had the same problem? Do you have any idea what could be the problem?&lt;/p&gt;
&lt;p&gt;Thank you very much for your help!!!&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: screenshot_error.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5024"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: Screenshot_Baustein.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5023"/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img alt="IMG: screenshot_problem.PNG" rel="nofollow" src="https://forum.codesys.com//download/file.php?id=5022"/&gt;&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>