Re: Dowloading Vcard from Web Page

Peter de Padua Krauss <[email protected]> Wed, 28 Sep 2005 11:20:49 -0300
Newsgroups gmane.ietf.vcard
Message-ID <[email protected]>
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
>[email protected]
>http://gnu-designs.com
>
>
>  
>