copy as curl at debug