Cyr*_*ril 2 iphone xcode objective-c configuration-files
我在一个 URL 中有一个 .mobileconfig 文件。我正在从 xcode 发送 Http 帖子(单击按钮时),http 帖子包含 .mobileconfig url。我可以在单击按钮时下载该文件吗?
在提供此文件时。它需要提供了一个MIMEContent-Type的application/x-apple-aspen-config。您可以通过.htaccess在文件夹中的服务器配置或文件中添加一行来做到这一点:
<IfModule mod_mime.c>
AddType application/x-apple-aspen-config .mobileconfig
</IfModule>
Run Code Online (Sandbox Code Playgroud)
如果从 PHP 中提供文件,您可以执行以下操作:
header('Content-type: application/x-apple-aspen-config; charset=utf-8');
header('Content-Disposition: attachment; filename="company.mobileconfig"');
echo $mobileconfig;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2285 次 |
| 最近记录: |