1
由於我是新來的iOS開發,我需要你的幫助..如何發送POST數據,包括JSON,從iOS應用到web服務器
我需要從iPad應用程序發送POST數據到Web服務器是將處理數據。 在HTML它會很容易地通過一個表單來完成這樣的:
<form name="myform" action="myphpfile.php" method="post">
<input type="hidden" name="input1" value="1" />
<input type="hidden" name="input2" value="2" />
<input type="hidden" name="json" value="{"a":"1","b":"2"}" />
</form>
正如你可以看到我有兩個「正常」輸入包含值的JSON格式的陣列之一。
如何在我的應用程序中發送數據並以正確的方式處理json以避免問題?
非常感謝您的幫助!