Search code examples
iosiphonensurlconnectionnsurlrequest

What is default setHTTPMethod for NSURLRequest? Is it "POST" or "GET"?


If I didn't mentioned setHTTPMethod for my NSURLRequest what will be default "POST" or "GET".

Thanks.


Solution

  • The default HTTP method is GET.

    Refer this NSURLRequest Class