The protocol we use for proxied data requests is really only suitable for requesting well formed XML data. With the current protocol, the data comes back wrapped inside an XML document, which contains optional header data, and is assumed to be well formed XML.
e.g., <resulset><body>DATA</body><headers>HEADERS</headers></resultset> As we want to support non XML protocols, like JSON, or raw text, which may need to be proxied through a server for security or other reasons, it would be nice to make the server proxy protocol support fetching arbitrary string content. My first thought is to add an extra flag to the request query args, which is something like "raw=true", and then the server would just proxy the request and send back the response verbatim. This would be simple, but would not allow any way to get the proxied response headers. I guess another idea would be to proxy the HTTP response verbatim, with the headers separated from the body by two blank lines. The client would need to parse as far as that, and could then take the rest of the response using substring(...). Any thoughts? Am I looking for a solution without a problem? -- Henry Minsky Software Architect [EMAIL PROTECTED]
