added functions to process post bodies and cookie headers of requests