I have published vcards on my apache web server. I have written a php script to read the vcards and serve them with the proper headers:
header('Content-Type: text/x-vCard; name='.$file);
header('Content-Disposition: inline; filename= '.$file);
This codes works well for BlackBerry phones but on Android phones it displays the vcard source code in the browser as text and on the iPhone I get the message "Safari cannot download this file."
I'm not opposed to parsing the vcard files and delivering the information in a different format if someone knows of a format that works for all. I suppose I could do some type of OS detection and deliver the information in different formats, too.
Has anyone successfully hosted vCard files for multiple devices? Any suggestions?