Added support for methods other than GET

Needed to support other methods. This is a rough patch that adds that.