Home > Contents > Index >
FormPoster.setAction
Sets the action for this request.
Syntax
public void setAction(String sAction) throws ExceptionParameters
sAction
- The action to issue on the
post()
call. Valid values areFormPoster.Get
orFormPoster.Post.
Description
The
setAction
method sets the action for this request. Valid values areFormPoster.Get
orFormPoster.Post.
Throws
Exception if an invalid action is specified.
Example
Use the formposter to fetch a HTML page:
FormPoster fp = new FormPoster(); fp.setURL("http://myserver/home.html"); fp.setAction(FormPoster.Get); status = fp.post(); String sHTMLPage = fp.getResponse();See Also
Home > Contents > Index > ![]()
Oracle JAVA Reference
Copyright (c) 2013, 2018, Oracle and/or its affiliates. All rights reserved.