Topic: Janney Montgomery Scott LLC

I'm trying to download the profile via curl:

--ofx.txt--
OFXHEADER:100
DATA:OFXSGML
VERSION:102
SECURITY:NONE
ENCODING:USASCII
CHARSET:1252
COMPRESSION:NONE
OLDFILEUID:NONE
NEWFILEUID:d4f5d7b3-2e29-428d-bcec-1e83715c0c1c

<OFX>
<SIGNONMSGSRQV1>
<SONRQ><DTCLIENT>20150204020905.480
<USERID>anonymous00000000000000000000000
<USERPASS>anonymous00000000000000000000000
<LANGUAGE>ENG
<FI>
<ORG>AFS
<FID>11326
</FI>
<APPID>QWIN
<APPVER>2300
</SONRQ>
</SIGNONMSGSRQV1>
<PROFMSGSRQV1>
<PROFTRNRQ>
<TRNUID>d2c1869d-d9c6-42ef-9254-b5287ee5094c
<PROFRQ>
<CLIENTROUTING>MSGSET
<DTPROFUP>19700104000000.000
</PROFRQ>
</PROFTRNRQ>
</PROFMSGSRQV1>
</OFX>

then command line:
curl -v -X POST --data-binary @ofx.txt --header "Content-Type:application/x-ofx" --header "Accept:*/*, application/x-ofx" https://jmsofx.automatedfinancial.com

but I get a response that looks like an html redirect page

Whereas you seem to get a valid profile.  Can you think of anything I'm doing wrong?

Re: Janney Montgomery Scott LLC

To answer my own question, the problem was that I was missing a space between "Content-Type:" and "application/x-ofx"