Transfer functionality not working: throws Error: Invalid Header

try to capture the full request coming in including headers. you are likely dropping header or post parameters along your processing chain.