Serializing headers and post params