Fixed port issues and addded HTTP method