Outstanding Contributor.. Outstanding Contributor..
Outstanding Contributor..

Web HTTP-HTML: Server has shut down the connection prematurely

Hi all, 

please, can you help me to understand what's the cause of the "Server has shut down the connection prematurely"? In some web researches, I've found different opinions about that, someone says that it's a client's issue, some other says it's a server problem. 

How can I resolve this? I've recorded a Web HTTP-HTML script with a web_rest() or web_custom_request() function, and I've pre-inserted those options, since in the past they had solved the anomaly, but the error remains, 

     web_set_option("MaxRedirectionDepth", "0", LAST );

     web_set_sockets_option("MAX_CONNECTIONS_PER_HOST", "1");  // to ignore the error message, but the request ends with timeout error

     web_set_sockets_option ("NEW_BEHAVIOR_OF_OVERLAPPED_SEND", "1");


Thank you very much for all your support,


The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.