add to_curl function for debug close #98