[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dowloading Vcard from Web Page




Ok, I think it is correct, this was tested also with the following ASP (MS-VBscript) code example,

response.Charset="ISO-8859-1"
response.ContentType = "text/x-vcard"
response.AddHeader "Content-Type", "text/x-vcard"
response.AddHeader "Content-Disposition", "inline;filename=rppn"& name &".vcf"
response.write vCardString



on the footer link (with the vCard icon, vcard.gif) on http://www.fintec.edu.br/teste2/dadosRPPNs.asp?cod=02

with
 http://www.fintec.edu.br/teste2/vcard_gen.asp?cod=02
(tested with IE and FireFox)

If you use text/plain ContentType the browser may tract as text file, not download
or application file.




Peter Krauss




David A. Desrosiers wrote:




response.setContentType("text/plain");



Wrong.


The proper MIME type for vCard is "text/x-vcard".


David A. Desrosiers desrod@xxxxxxxxxxxxxxx http://gnu-designs.com