Closes an HTTP Session opened with HTTPConnect(). This method is automatically called during DESTROY.



You should always close HTTP connections after retrieving content from the server. In fact, we recommend you creata a new object each time you make another call to make sure the object is 'in a clean' state. During operation various properties may get set that have to be unset later if you keep the object around (for example the POST buffer and connection handles) and it's simply easier to recreate the object than to reset everything. If you insist on keeping the object around make sure you call HTTPClose() on each request or you will leak Windows handles causing an eventual running out of resources.

© West Wind Technologies, 1996-2024 • Updated: 02/06/19
Comment or report problem with topic