Integrations tests without cookies


I wonder how to have integration tests that do not use client cookies?

My problem is that when I test my Rails served API using curl, when I do not pass credentials in headers my request is not accepted.

But when an iPhone is used as a client, or Rails integrations tests, credentials seem to be saved between requests, which is something I do not want (I cannot deactivate storing sessions for the whole app because I have multiple route namespaces, but maybe it’s possible for a controller only?).


Nobody here is working on an API and is concerned by this matter?