useCookies() method

Network library uses this method to check whether it has to send cookies to the server when the current request is performed.

Syntax

public boolean useCookies ()

Parameters

Example 1

BaseRequest getrequest = new BaseRequest(); boolean usecookie = getrequest.useCookies();

Usage

Some requests may deny sending any cookies to the server, in this case this method can be used by the request to signal to the network library. The default value for this is false in the BaseRequest implementation.