Share this page

# JavaHTTP.sendSerialized

Example: Java over HTTP Action | Java over HTTP Vuser Functions

Serializes an object and sends it synchronously on HTTP with the given options.

    public static Object sendSerialized(Object obj, int fileNumber, String serializerName, String stepName, String urlAddress, String[] options) throws HttpException, IOException

    public static Object sendSerialized(Object obj, int fileNumber, String serializerName, String stepName, String urlAddress, String[] options, boolean performErrorChecking) throws HttpException, IOException

## Arguments

Argument | Description
--- | ---
obj | An object.
fileNumber | The ordinal number of the header file.
serializerName | The serialization method.
stepName | The name of the step, as it appears in the test tree. Any text can be used.
urlAddress | The URL of the service that receives the object.
options | The invocation options to be passed to the server.
performErrorChecking | true to perform validation. If not passed, uses the value of the system property, validateNoException.

Common options are:

"Method=POST",

"Resource=0",

"RecContentType=application/x-java-serialized-object",

"Referer=",

"Mode=HTML",

"EncType=application/x-java-serialized-object",

## Parameterization

Parameterization is not applicable to this function.

Tips to improve your search results... VuGen Function Reference Version 25.1-25.3 Function Reference 25.1-25.3 All View Local Help Center View Online Help Center Version: