Re: BinaryBody problem ......

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52555
interpreted = N
texte = Doooh! Okay, my bad. I am seeing the same problem when using the BinaryBody feature to invoke downloads of larger files. The Windows build of 5.1 does not calculate the Content-Length MIME header correctly when the BinaryBody feature is used. I am fixing this now. Wierd that is worked for smaller files. The UNIX builds are not affected. For now, you can try adding the Content-Length header in your code. Like this: [!]Generate the response[/!] [ReturnRaw binarybody=[getfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] [/!]Status: 200[unurl][line_ending][/unurl][!] [/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!] [/!]Content-Length: [fileinfo file=[getfile]][size][/fileinfo][unurl][line_ending][/unurl][!] [/!]Content-Disposition: attachment; filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!] [/!][/ReturnRaw] Of course, the browser will receive two Content-Length headers; the one you insert, and the one the engine creates automatically. I tested this change, and my browser seemed to handle larger downloads just fine. This 'BinaryBody Content-Length' bug will be fixed for the Windows 5.1 patch. -----Original Message----- From: Stuart Tremain [mailto:development@idfk.com.au] Sent: Wednesday, August 27, 2003 9:13 PM To: WebDNA-Talk@talk.smithmicro.com Subject: BinaryBody problem ...... Any ideas re my previous posts ? Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ Associated Messages, from the most recent to the oldest:

    
  1. Re: BinaryBody problem ...... ( "Scott Anderson" 2003)
  2. Re: BinaryBody problem ...... ( Stuart Tremain 2003)
  3. Re: BinaryBody problem ...... ( Stuart Tremain 2003)
  4. Re: BinaryBody problem ...... ( "Scott Anderson" 2003)
  5. Re: BinaryBody problem ...... ( "Scott Anderson" 2003)
  6. BinaryBody problem ...... ( Stuart Tremain 2003)
Doooh! Okay, my bad. I am seeing the same problem when using the BinaryBody feature to invoke downloads of larger files. The Windows build of 5.1 does not calculate the Content-Length MIME header correctly when the BinaryBody feature is used. I am fixing this now. Wierd that is worked for smaller files. The UNIX builds are not affected. For now, you can try adding the Content-Length header in your code. Like this: [!]Generate the response[/!] [ReturnRaw binarybody=[getfile]]HTTP/1.0 200 OK[unurl][line_ending][/unurl][!] [/!]Status: 200[unurl][line_ending][/unurl][!] [/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!] [/!]Content-Length: [fileinfo file=[getfile]][size][/fileinfo][unurl][line_ending][/unurl][!] [/!]Content-Disposition: attachment; filename="[getfile]"[unurl][line_ending][line_ending][/unurl][!] [/!][/ReturnRaw] Of course, the browser will receive two Content-Length headers; the one you insert, and the one the engine creates automatically. I tested this change, and my browser seemed to handle larger downloads just fine. This 'BinaryBody Content-Length' bug will be fixed for the Windows 5.1 patch. -----Original Message----- From: Stuart Tremain [mailto:development@idfk.com.au] Sent: Wednesday, August 27, 2003 9:13 PM To: WebDNA-Talk@talk.smithmicro.com Subject: BinaryBody problem ...... Any ideas re my previous posts ? Regards Stuart Tremain idfk web developments 114a/40 yeo street neutral bay 2089 australia t +612 9908 2134 f +612 9908 4837 ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ ------------------------------------------------------------- This message is sent to you because you are subscribed to the mailing list . To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/ "Scott Anderson"

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

[OT] Form POSTing with LONG variable (2007) How To question on setting up downloads (1997) Using Plug-In while running 1.6.1 (1997) Re:Variable Math (1998) Webcat causing crashes left and right! (1997) Catalogs and W* (1996) Fileinfo... (2000) Why no lf in grep? (2004) Music in background (2000) Emailer (1998) Getting total number of items ordered (1997) [shipCost] math formula? (1997) Slow Server (2005) RE: groups and [ShowNext] (1997) [writefile] (1997) Extra equals signs with IE? (More debugging questions...) (1997) Need help with emailer- 2 issues (1997) Problems appending to database (1997) WebCat for mass emailings (1997) syntax question, not in online refernce (1997)