adjusted agentpost RPC for new Content-Encoding/X-Content-Encoding method