Hi all,
I have tried to use keep-alive http header with XML-API:
Client->Server:
GET /xml-api/version HTTP/1.1
Host: myhost.com:2086
User-Agent: AutomationScript 1.0
Authorization: WHM root:0123456789abcdefgh<access hash goes here>
Keep-Alive: 300
Connection: keep-alive
Server->Client:
HTTP/1.1 200 OK
Server: cpsrvd/11.25
Connection: close
Transfer-Encoding: chunked
Content-type: text/xml
<version>
<version>11.26.8</version>
</version>
As you can see cPanel server closes the connection (Connection:close).
Is it possible to use keep-alive http connection with XMLAPI?



LinkBack URL
About LinkBacks
Reply With Quote





