Fixes for HTTP backend to work with perl server again