Skip to main content
snm1523
Gold ⭐️⭐️
November 2, 2022
Solved

Kill Atlas API session after import command is completed

Hello,

 

I am working on importing multiple Atlas entities using Atlas API calls. After completing execution of each curl command, the message I get is "connection is left intact". Is there a way to kill / terminate this connection to Atlas server?

 

Thanks

snm1523

vats
vatsAnswer
Gold ⭐️
March 26, 2025

Hello @snm1523 

Add Connection: close header to your curl requests to ensure the connection is closed after each request.

Alternatively, use --no-keepalive in the curl command to prevent persistent connections.

If necessary, adjust server settings to force connections to close after each request.

 

1 reply

vats
Gold ⭐️
vatsAnswer
Gold ⭐️
March 26, 2025

Hello @snm1523 

Add Connection: close header to your curl requests to ensure the connection is closed after each request.

Alternatively, use --no-keepalive in the curl command to prevent persistent connections.

If necessary, adjust server settings to force connections to close after each request.

 

Translate