[WebDNA] Setting Content-Type within [returnraw] - not working on Linux

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104506
interpreted = N
texte = --00032555ac06b55a18047d369d01 Content-Type: text/plain; charset=UTF-8 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] --00032555ac06b55a18047d369d01 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all,

Looks like there may be another problem with [re= turnraw] on Linux. =C2=A0 I can't seem to define the Content-Type (see = code below) I had been serving out an image from a WebDNA template after in= crementing a log file. =C2=A0This was to track email open rates. =C2=A0 Wor= ked on our old Mac server, now however the image is being served out as = 9;text/html' which obviously won't work.

- Tom




[!]<!-- HAS_WEBDNA_TAGS -->
[/!]<= /div>

[text]exportFilePath=3D../images/emails/[/text]
[text]exportFile=3Dblank.gif[/text]

[hideif [= url][rID][/url]=3D[url][raw][rID][/raw][/url][replace db=3D../../data/db_ma= ssmailer/massmailerLogOpen.db&append=3DT&autonumber=3DrID]rCREATEDA= TE=3D[math]{[DATE]}[/math]&rCREATETIME=3D[time]&sCONSTITUENTID=3D[u= rl][rID][/url]&sMAILCAMPAIGNID=3D[url][cID][/url][/replace][/hideif]

[text]line_ending=3D%0D%0A[/text]

<= div>[returnRaw binarybody=3D[exportFilePath][exportFile]]HTTP/1.0 200 OK[un= url][line_ending][/unurl][!]

[/!]Status: 200[unurl= ][line_ending][/unurl][!]

[/!]Content-Type: image/gif[unurl][line_ending][line_en= ding][/unurl][!]

[/!][/returnraw]
--00032555ac06b55a18047d369d01-- Associated Messages, from the most recent to the oldest:

    
  1. [WebDNA] Setting Content-Type within [returnraw] - not working on Linux (Tom Duke 2010)
--00032555ac06b55a18047d369d01 Content-Type: text/plain; charset=UTF-8 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] --00032555ac06b55a18047d369d01 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi all,

Looks like there may be another problem with [re= turnraw] on Linux. =C2=A0 I can't seem to define the Content-Type (see = code below) I had been serving out an image from a WebDNA template after in= crementing a log file. =C2=A0This was to track email open rates. =C2=A0 Wor= ked on our old Mac server, now however the image is being served out as = 9;text/html' which obviously won't work.

- Tom




[!]<!-- HAS_WEBDNA_TAGS -->
[/!]<= /div>

[text]exportFilePath=3D../images/emails/[/text]
[text]exportFile=3Dblank.gif[/text]

[hideif [= url][rID][/url]=3D[url][raw][rID][/raw][/url][replace db=3D../../data/db_ma= ssmailer/massmailerLogOpen.db&append=3DT&autonumber=3DrID]rCREATEDA= TE=3D[math]{[date]}[/math]&rCREATETIME=3D[time]&sCONSTITUENTID=3D[u= rl][rID][/url]&sMAILCAMPAIGNID=3D[url][cID][/url][/replace][/hideif]

[text]line_ending=3D%0D%0A[/text]

<= div>[returnRaw binarybody=3D[exportFilePath][exportFile]]HTTP/1.0 200 OK[un= url][line_ending][/unurl][!]

[/!]Status: 200[unurl= ][line_ending][/unurl][!]

[/!]Content-Type: image/gif[unurl][line_ending][line_en= ding][/unurl][!]

[/!][/returnraw]
--00032555ac06b55a18047d369d01-- Tom Duke

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:

TRAINING videos - Prove IT. (1998) WebCat2: Found Items syntax, etc. (1997) Re:mac hack (1997) process SSI (1998) Help formatting search results w/ table (1997) Problems with [Applescript] (1997) [input]?? (1998) WebCat2.0 [format thousands .0f] no go (1997) UPPERCASE (1997) page redirect in webDNA (1997) OT: javascript for dynamic pulldowns? (1998) WebTrends (2002) Sort Order on a page search (1997) Enhancement Request for WebCatalog-NT (1996) WebCat2b15MacPlugin - showing [math] (1997) Locking up with WebCatalog... (1997) Bug Report, maybe (1997) t or f (1997) Webcat interfering with Webstar? (1998) FoundItems Question (1998)