Re: [WebDNA] Setting Content-Type within [returnraw] - not working

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104508
interpreted = N
texte = Tom Duke wrote: > Hi all, > > Looks like there may be another problem with [returnraw] on Linux. I > can't seem to define the Content-Type (see code below) I had been > serving out an image from a WebDNA template after incrementing a log > file. This was to track email open rates. Worked on our old Mac > server, now however the image is being served out as 'text/html' which > obviously won't work. > > - Tom > > > > > [!] > [/!] > > [text]exportFilePath=../images/emails/[/text] > [text]exportFile=blank.gif[/text] > > [hideif [url][rID][/url]=[url][raw][rID][/raw][/url][replace > db=../../data/db_massmailer/massmailerLogOpen.db&append=T&autonumber=rID]rCREATEDATE=[math]{[DATE]}[/math]&rCREATETIME=[time]&sCONSTITUENTID=[url][rID][/url]&sMAILCAMPAIGNID=[url][cID][/url][/replace][/hideif] > > [text]line_ending=%0D%0A[/text] > > [returnRaw binarybody=[exportFilePath][exportFile]]HTTP/1.0 200 > OK[unurl][line_ending][/unurl][!] > > [/!]Status: 200[unurl][line_ending][/unurl][!] > > [/!]Content-Type: image/gif[unurl][line_ending][line_ending][/unurl][!] > > [/!][/returnraw] Hi Tom, did you see my reply in the last one? Donovan -- Donovan Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-forum.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Setting Content-Type within [returnraw] - not working (Donovan Brooke 2010)
  2. Re: [WebDNA] Setting Content-Type within [returnraw] - not working on (Tom Duke 2010)
  3. Re: [WebDNA] Setting Content-Type within [returnraw] - not working on Linux (christophe.billiottet@webdna.us 2010)
  4. Re: [WebDNA] Setting Content-Type within [returnraw] - not working on (Tom Duke 2010)
  5. Re: [WebDNA] Setting Content-Type within [returnraw] - not working (Donovan Brooke 2010)
  6. Re: [WebDNA] Setting Content-Type within [returnraw] - not working on (Tom Duke 2010)
  7. Re: [WebDNA] Setting Content-Type within [returnraw] - not working (Donovan Brooke 2010)
  8. [WebDNA] Setting Content-Type within [returnraw] - not working on Linux (Tom Duke 2010)
Tom Duke wrote: > Hi all, > > Looks like there may be another problem with [returnraw] on Linux. I > can't seem to define the Content-Type (see code below) I had been > serving out an image from a WebDNA template after incrementing a log > file. This was to track email open rates. Worked on our old Mac > server, now however the image is being served out as 'text/html' which > obviously won't work. > > - Tom > > > > > [!] > [/!] > > [text]exportFilePath=../images/emails/[/text] > [text]exportFile=blank.gif[/text] > > [hideif [url][rID][/url]=[url][raw][rID][/raw][/url][replace > db=../../data/db_massmailer/massmailerLogOpen.db&append=T&autonumber=rID]rCREATEDATE=[math]{[date]}[/math]&rCREATETIME=[time]&sCONSTITUENTID=[url][rID][/url]&sMAILCAMPAIGNID=[url][cID][/url][/replace][/hideif] > > [text]line_ending=%0D%0A[/text] > > [returnRaw binarybody=[exportFilePath][exportFile]]HTTP/1.0 200 > OK[unurl][line_ending][/unurl][!] > > [/!]Status: 200[unurl][line_ending][/unurl][!] > > [/!]Content-Type: image/gif[unurl][line_ending][line_ending][/unurl][!] > > [/!][/returnraw] Hi Tom, did you see my reply in the last one? Donovan -- Donovan Brooke Euca Design Center [Practical-Ethical-Efficient] www.euca.us egg.bz artglass-forum.com Donovan Brooke

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:

WebCat2b13MacPlugIn - [showif][search][/showif] (1997) Separate SSL Server (1997) WebObjects (2000) OT: Version Control (2007) WebCat2b13MacPlugIn - More limits on [include] (1997) writing orders to a db (1997) Re:redirect from the errorsMessages.db entry (1997) Getting Emailer to send mail (1997) [writefile] (1997) Simple Database close connection (2001) passing variables to .asp (2000) PCS Frames (1997) Nesting [RAW] (1998) 'does not contain' operator needed ... (1997) RE: Signal Raised (1997) One Hour Email (2002) another problem (1997) gateway application timeouts (1998) Setting up shop (1997) [SearchString] problem with [search] context (1997)