iosobjective-cparsingasihttprequestasiformdatarequest

Posting data to server to get response


I would like send data to server to get response.

I used ASIFormDataRequest, NSMutableURLRequest, NSURLSessionConfiguration.

But i did not get the response.

I tried in these ways

Response

Please guide me. or suggest me any other ways.

Thank you.


Solution

  • The best practice is to use AFNetworking :

    https://github.com/AFNetworking/AFNetworking

    There is a lot of data you can find to get guided, for example:

    http://www.raywenderlich.com/59255/afnetworking-2-0-tutorial

    AFNetworking Post Request