I dont really understand the question but here's an xml example of what is getting posted to postgres, and i'm trying to figure out how to do a connection.close() type of thing in it.
Postgres doesn't have a built-in webserver, so you are obviously going through some kind of webserver/appserver to do the HTTP post. Figure out how to tell that server to close the connection.