Make it work with curl for easing the testing