adding support for performing HTTP POST & GET requests
fix bug where index could be out of bounds when extracting an empty object from a table