php http extension script refinement.
Merge pull request #11 from shouze/master

php http extension script refinement.