changed the sample code to get short url to post long url