Keith: Are you sure this isn't a multipart document? Something like the following: --RandomBoundaryString header header <blank line> body of document --RandomBoundaryString header of 2nd part more headers <blank line> body of document --RandomBoundaryString-- This is a format that is used when a document has multiple parts, such as when there's both a SOAP message and another document to download at the same time (an "attachment" they are sometimes called). Unfortuntely, HTTPAPI has nothing built-in to decode multipart documents. (It does have something for encoding them -- just not decoding.) So you'd need to write your own code. You'd do this by searching for the boundary string, then reading until the blank line to skip the headers. That would be the start of the document -- and then read until the next boundary to find the end of the document. Whatever you find therein would be the actual doc. On the other hand, if you're really (as you seem to be implying) getting normal HTTP headers mixed in with your data, and this isn't a multipart document -- then something is seriously wrong. Probably a bug on the server, since HTTPAPI seems to work perfectly at extracting just data (and omitting the headers) for all cases I've seen. -SK On 10/11/17 6:18 AM, Keith McCully
wrote:
|
-- _______________________________________________ Ftpapi mailing list Ftpapi@xxxxxxxxxxxxxxxxxxxxxx http://scottklement.com/mailman/listinfo/ftpapi