changed hardcoded post url to config value