Implemented curl code generation