added some flask methods to get url from post request
added some flask methods to get url from post request