added getURL and postPath methods