On Mon, Jun 24, 2013 at 8:05 AM, Omkar Ramtekkar
<[email protected]> wrote:

> I'm working on a project, where in I need to get the data from server through 
> RESTful web services.
> Server side people have implemented a few web services. I need to use those 
> methods, but I'm not sure which http method to use "Get" or "POST".
> If I use "GET" as http method and if the server web service is being 
> implemented in "POST" then I get 404 or similar http error code.
> Is there any way to find out the http method type being implemented for a web 
> server API?

The proper way for the backend to deal with requests using an
unsupported HTTP method would be to return a 405 status code and a
list of supported methods in the "Allow" header.

If you do get a 405 status code, try looking for that header.
_______________________________________________

Cocoa-dev mailing list ([email protected])

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to