Add PUT protocol for http.php
Add more API function