[/!]<=/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:
|
- [WebDNA] Setting Content-Type within [returnraw] - not working on Linux (Tom Duke 2010)
|
--00032555ac06b55a18047d369d01Content-Type: text/plain; charset=UTF-8Hi all,Looks like there may be another problem with
[returnraw] on Linux. I can'tseem to define the Content-Type (see code below) I had been serving out animage from a WebDNA template after incrementing a log file. This was totrack email open rates. Worked on our old Mac server, now however theimage 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][replacedb=../../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 200OK
[unurl][line_ending][/unurl]
[!][/!]Status: 200
[unurl][line_ending][/unurl]
[!][/!]Content-Type: image/gif
[unurl][line_ending][line_ending][/unurl]
[!][/!][/returnraw]--00032555ac06b55a18047d369d01Content-Type: text/html; charset=UTF-8Content-Transfer-Encoding: quoted-printableHi 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 -->