code for part 2
parse headers and do content negotiation
new post