It is mandatory to specify the Accept header, otherwise the servers responds with HTML