try it and post back what happens
so, funny enough the headers still work on windows but not on the pi even tho they are pi headers. This suggests it's not the headers. The headers is the only thing parameter used in the request though. Has to be something else.