| Attribute | Description | Required | 
|---|---|---|
| id | The reference id to store this HttpState under. | No. | 
| refId | The reference id of the HttpState which this element references. | No. | 
Create a cookie.
| Attribute | Description | Required | 
|---|---|---|
| domain | No. | |
| path | No. | |
| name | No. | |
| value | No. | |
| secure | No. | |
| comment | No. | |
| expiryDate | No. | |
| version | No. | |
| domainAttributeSpecified | No. | |
| pathAttributeSpecified | No. | 
Create authentication credentials.
| Attribute | Description | Required | 
|---|---|---|
| host | The host. | No. | 
| port | The port. | No. | 
| realm | The realm. | No. | 
| scheme | The scheme. | No. | 
| username | The username. | No. | 
| password | The password. | No. | 
Create proxy authentication credentials.
| Identitical to <credentials> element. | 
|---|
Copyright © 2002-2003 Ant-Contrib Project. All rights Reserved.
    
    <httpState id="myState">
       <cookie name="loginId" value="username" realm="sourceforge.net" />
    </httpState>
    
    <httpClient id="myClient" stateRefId="myState" />
    <httpClient id="myClient>
      <httpState >
        <cookie name="loginId" value="username" realm="sourceforge.net" />
      </httpState>
    </httpClient>