fix error checking, implement post body url encoding
implement post request support
create common option function
add license
add comments
Merge branch 'post'