debugging with curl