[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:

No Access warning when caching HTML files (1997) [WebDNA] Wishlist: ignore whitespace in database changes (2016) WebCat2b13MacPlugIn - [showif][search][/showif] (1997) WebCatalog Upgrade Pricing? (1997) PCS Frames-Default page is solution! (1997) What is WebDNA (1997) Showif dates... (2002) Problem with listfields with WC 4.0.2rc2/Webstar 4.4 (2001) weening me off overwriting form variables. John Peacock? (2000) wierd crashes for multi-sendmails on NT (1997) Odd error in logs (1998) [carts] and databases (1997) Appending data from an IFrame (2002) WebCat2 several catalogs? (1997) [OT] Changing permissions on W2003 via FTP (2007) Some ThankYou page problems (1997) WebCat for Unix?? (1997) Images do not upload completely ... (2003) Deleting Orders (1997) Where is f2? (1997)