Added functions for signing GET/POST requests