added support for POST_URL env var.