【发布时间】:2012-03-18 23:46:48
【问题描述】:
我想在 Safari 中从 UIView 启动一个 URL,发送 POST 数据。这将允许我加载我的 Paypal 页面。
通常,在 HTML 中我们必须这样做:
<form action="https://www.paypal.com/cgi-bin/webscr" method="post" style="text-align:center;" target="_blank">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="XXXXXXXXXXX">
<input type="submit" value="Faire un don" id="donpaypal">
</form>
我知道我可以用这几行打开一个新 URL:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString: @"http:://I.have.a.beautifull.website.com"]];
是否有指定 POST 数据的意思,或者您有意思吗?
【问题讨论】:
标签: ios url paypal safari http-post