org.apache.jmeter.protocol.http.sampler
Modifier and Type | Field and Description |
---|---|
protected static String |
BOUNDARY
The bounday string between multiparts
|
static String |
ENCODING |
protected byte[] |
formDataPostBody
The form data that is going to be sent in post body
|
protected byte[] |
formDataUrlEncoded
The form data that is going to be sent as url encoded
|
Constructor and Description |
---|
PostWriter()
Constructor for PostWriter.
|
PostWriter(String boundary)
Constructor for PostWriter
|
Modifier and Type | Method and Description |
---|---|
protected String |
getBoundary()
Get the boundary string, used to separate multiparts
|
String |
sendPostData(URLConnection connection,
HTTPSamplerBase sampler)
Send POST data from Entry to the open connection.
|
void |
setHeaders(URLConnection connection,
HTTPSamplerBase sampler) |
protected static final String BOUNDARY
public static final String ENCODING
protected byte[] formDataUrlEncoded
protected byte[] formDataPostBody
public PostWriter()
public PostWriter(String boundary)
boundary
- the boundary string to use as marker between multipart partspublic String sendPostData(URLConnection connection, HTTPSamplerBase sampler) throws IOException
IOException
public void setHeaders(URLConnection connection, HTTPSamplerBase sampler) throws IOException
IOException
protected String getBoundary()
Copyright © 1998-2014 Apache Software Foundation. All Rights Reserved.