Changed curl command for flex