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 BinaryBodyfeature to invoke downloads of larger files.The Windows build of 5.1 does not calculate the Content-Length MIME headercorrectly when the BinaryBody feature is used. I am fixing this now. Wierdthat is worked for smaller files. The UNIX builds are not affected.For now, you can try adding the Content-Length header in your code. Likethis:[!]Generate the response[/!][ReturnRaw binarybody=[getfile]]HTTP/1.0 200OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!][/!]Content-Length: [fileinfofile=[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 youinsert, 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.1patch.-----Original Message-----From: Stuart Tremain [mailto:development@idfk.com.au]Sent: Wednesday, August 27, 2003 9:13 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: BinaryBody problem ......Any ideas re my previous posts ?RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +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 toWeb 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:
Doooh!Okay, my bad. I am seeing the same problem when using the BinaryBodyfeature to invoke downloads of larger files.The Windows build of 5.1 does not calculate the Content-Length MIME headercorrectly when the BinaryBody feature is used. I am fixing this now. Wierdthat is worked for smaller files. The UNIX builds are not affected.For now, you can try adding the Content-Length header in your code. Likethis:[!]Generate the response[/!][ReturnRaw binarybody=[getfile]]HTTP/1.0 200OK[unurl][line_ending][/unurl][!][/!]Status: 200[unurl][line_ending][/unurl][!][/!]Content-Type: application/octet-stream[unurl][line_ending][/unurl][!][/!]Content-Length: [fileinfofile=[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 youinsert, 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.1patch.-----Original Message-----From: Stuart Tremain [mailto:development@idfk.com.au]Sent: Wednesday, August 27, 2003 9:13 PMTo: WebDNA-Talk@talk.smithmicro.comSubject: BinaryBody problem ......Any ideas re my previous posts ?RegardsStuart Tremainidfk web developments114a/40 yeo street neutral bay 2089 australiat +612 9908 2134f +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 toWeb 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:
Re:WebCat Contest (1998)
Closing db's & caching templates (was: Shippingcalculations) (1997)
Searching using numbers (1998)
question: webmerchant connection (1997)
Requiring that certain fields be completed (1997)
Adding up line items. (2000)
Email notification to one of multiple vendors ? (1997)
Limitations on fields? Server is crashing (1997)
Emailer (WebCat2) (1997)
Javascript/WebCatalog form population (2001)
WC2.0 Memory Requirements (1997)
problem with applets embedded in tpl files (1997)
Applescript error (1998)
[WebDNA] Client wants backup copy of site (2010)
[OT] I am old. (2003)
question: writing files textb in webmerch (1997)
shownext problems (1998)
Replace context problem ... and answers (1997)
MATH PROBLEM (1997)
Exists? (1997)