adding support for other HTTP methods in sendTo