support http methods, support js crossdomain request