created put_header and put_query_param methods