我正在使用 AFNetworking 框架,需要向服务器提交表单(POST)请求。这是服务器期望的示例:
<form id="form1" method="post" action="http://www.whereq.com:8079/answer.m">
<input type="hidden" name="paperid" value="6">
<input type="radio" name="q77" value="1">
<input type="radio" name="q77" value="2">
<input type="text" name="q80">
</form>
我考虑在 AFHTTPClient 中使用 multipartFormRequestWithMethod,就像在使用 AFNetworking发送多个图像后讨论的那样。但我不知道如何使用“radio”类型的输入值附加表单数据。