Home > Contents > Index >
Expanded TOC | Accordion TOC | Annotated TOC | Index
FormPoster.findAllCookies
Finds the cookies in an HTTP response.
This method has two variants:
- findAllCookies (Variant 1) finds all of the cookies in an HTTP header.
- findAllCookies (Variant 2)
FormPoster.findAllCookies
Retrieves all cookies from the HTTP response.
Syntax
public static FTValList findAllCookies()Returns
FTValList
object containing all cookie names and values.Example
FormPoster fp = new FormPoster(); FTValList vlCookies; fp.setURL("http://myserver/servlet/CatalogManager"); //--- // Add a new row to MyTable FTStatusCode ftStatus = new FTStatusCode(); status = fp.login(true, ftStatus, "myusername", "mypassword"); vlCookies = fp.findAllCookies(); Status = fp.addFile("url", "test.html", "/export/home/temp/test.html", "text/html"); Status = fp.addTextValue("tblname", "MyTable"); Status = fp.addURL("myparameter", "http://server/main.html"); Status = fp.addTextValue("id", "1323"); Status = fp.addTextValue("ftcmd", "addrow"); fp.setCookies(vlCookies); Status = fp.post(); //--- // Fetch the response without the http headers CleanResponse = fp.cleanRawResponse(true); fp.login(false, ftStatus, null, null);See Also
FormPoster.findAllCookies
Retrieves all cookies from the HTTP response.
Syntax
public static FTValList
findAllCookies(String sData)
Parameters
sData
- The HTTP response.
Returns
FTValList
object containing all cookie names and values.
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved.