fix HTTP POST requests