1

In website the form data is posted using the code below using HTML post request:

<div id="requestinfo">
    <form method="post" action="http://abc/form-post.php" id="request_form">
        <input type="hidden" name="field1" value="value1" />
        <input type="hidden" name="field2" value="value2" />
    </form>
</div>

How can I do the same in iPhone? We do not have to use web services.

Vishal
  • 8,246
  • 6
  • 37
  • 52
Vibhooti
  • 1,193
  • 2
  • 9
  • 20

1 Answers1

1

I'd recommend using AFNetworking as a solution for working with HTTP verbs and data.

The AFHTTPClient allows you to specify the verb (POST in this case) as well as the parameters to pass.

See: AFNetworking Post Request

Community
  • 1
  • 1
Richard Brown
  • 11,346
  • 4
  • 32
  • 43