fix header length problem
finish POST support
add error handler
fix bug