On 17 Oct 2014, at 04:08, David Ringsmuth <[email protected]> wrote:
> Nowhere do I find setting the MIME type to application/octet-stream? Hi David Are you using fusebox ? A couple of things to try: [1] - Hack The Shell to Check the Response Header contains a “content-type" You can put a little hack in the shell (A4D_OnWebConnection) to check the response header before it gets passed to 4D for transmission. Just before line 97 (where it checks the state of <>A4D_CanSendRawData), dump the contents of $responseHeaderNames and $responseHeaderValues to a text variable and call SET TEXT TO PASTEBOARD($responseDUMP). Then put a stopper (red dot) just after that and paste into a text editor. You also need to do the same for the value of $contentType at line 118 in the case that <>A4D_CanSendRawData is false. Make sure that line 118 finds the content-type field in the array table ($i:=Find in array($responseHeaderNames;"Content-Type”). At least that will tell you what the shell *thinks* it’s sending back and will detect any rogue response header modifications in your page scripts. [2] - Check 4D’s Preferences v14 is quite aggressive in restoring its default home page in the preferences. I notice myself having to reset this a lot more than in previous versions. 4D seems desperate to serve something. Make sure you’ve got it pointed to an empty webDecoy folder and clear out the default home page (set it to blank). h.t.h. Peter P.S. I would set <>A4D_CanSendRawData to one thing or the other in code and not have it driven by the 4D version number. I realise why Aparajita did it this way - so that we wouldn’t have to think about it - but the fact is that it’s better to think about it. I just switched ours permanently to false regardless of the version. When 4D fix the bug in WEB SEND RAW DATA then I might switch it back. _______________________________________________ Active4D-dev mailing list [email protected] http://list.aparajitaworld.com/listinfo/active4d-dev Archives: http://active4d-nabble.aparajitaworld.com/
