Consuming Custom Request Methods with iOS5

家住魔仙堡 提交于 2019-12-02 12:27:53

问题


My original question regarding Consuming Custom Request Methods with Android seems to have garnered very little attention -- I have converted it to an Android specific question

So, quite simply, with iOS5 development, is it possible to consume custom request methods?

If so, how.

The "standard" set of request methods, as per RFC-2616 are:

  • GET
  • PUT
  • POST
  • DELETE
  • TRACE
  • CONNECT

I would like to add another, called SEARCH. On the API, using PHP or Java, this is easy to implement in PHP. The consumption of this new request method is proving to be a challenge for an iOS developer.

Does anyone have any references to working examples or frameworks that will support a custom request method, such as SEARCH, or FOOBAR?


回答1:


ASIHTTPRequest allows it: http://allseeing-i.com/ASIHTTPRequest/How-to-use

Check out the 'PUT requests and custom POSTs' section.

[request setRequestMethod:@"SOME_REQUEST_METHOD"];


来源:https://stackoverflow.com/questions/10076883/consuming-custom-request-methods-with-ios5

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!