RestConnection: Fix overflow error with post method

One POST method after request header refactoring inadvertently called itself.
Added request header support for PUT methods.

Testing Done: Ran workflows.
Bug Number: none
Reviewed by: trivial