reconstructure curl code
Merge pull request #2 from alvayang/master

reconstructure curl code