Topic: Dos vs. Unix newline
I have found that some windows OFX servers are sensitive to the newline method when sending OFX requests. Unix style uses a linefeed (LF) which can be created on unix systems as "\n". DOS/Windows style uses a carriage return linefeed (CRLF) which can be created on unix systems as "\r\n". Windows servers seem to like the DOS style and might not work with the unix style. A typical error from a windows server in this situation would look like this:
OFXAdapter: Failed to parse request: Unable to parse an atomic field "OFXRequest.Headers.OFXHeader": unable to find end delimiters "
Remaining unparsed data:
(note the 100 line is sent as OFXHEADER:100)
One handy way to convert a string to DOS style in php is:
$data = str_replace("\n", "\r\n", $data);
This assumes that the $data string you generate uses only \n.