postHttp
@CliCommand(value="http post",
help="POST data to http endpoint")
public java.lang.String postHttp(@CliOption(mandatory=false,key={"","target"},help="the location to post to",unspecifiedDefaultValue="http://localhost:9000")
java.lang.String target,
@CliOption(mandatory=false,key="data",help="the text payload to post. exclusive with file. embedded double quotes are not supported if next to a space character")
java.lang.String data,
@CliOption(mandatory=false,key="file",help="filename to read data from. exclusive with data")
java.io.File file,
@CliOption(mandatory=false,key="contentType",help="the content-type to use. file is also read using the specified charset",unspecifiedDefaultValue="text/plain; Charset=UTF-8")
org.springframework.http.MediaType mediaType)
throws java.io.IOException
- Throws:
java.io.IOException