The HTTP request the sampler Jmeter

Sampler is used to simulate a user operation, and send a request receiving server response data to the server, like the LoadRunner Vuser; i.e. HTTP request HTTP protocol Vuser

basic skills

Automatically redirects:  selected said, when the HTTP request if the response is a 301/302, Jmeter automatically redirected to a new page corresponding to, but not recorded redirected

Request and response content, only GET and HEAD requests to use automatic redirection

Follow the redirect:  automatic redirect a second election, selected by default, represents the response is 301/302, it will automatically jump to the target page, the initial response as redirection and further

Additional samples appear. The value of the URL and data fields from the parent sampler sampler last non redirector. However, the parent sampler and the number of bytes taken interval comprising

, The latency value is taken from the sampler in response to a first

Use keep Alive:  When this option is selected, and the target server use between jmeter Keep-Alive HTTP communication mode is selected by default. In the default

Under HTTP implementation it does not work, because the connection is not reused under user control. But in Apache HttpComponents HttpClient it works

Use of POST multipart / from-data:  using the multipart / HTTP from-data transmission or application / x-www-form-method

POST requests, do not choose default

Advanced Features

Client implementations: the default is HttpClient4, if it is, then upload the file must be selected, otherwise the request is successful, in fact, did not file uploaded successfully

Source Address:  Only for http protocol and Implementation of a case where HttpClient4 

This property is used to enable IP spoofing. This will override the default local IP address of http requests used. Jmeter host having a plurality of IP addresses (i.e. IP alias, a network interface, device

Case. This value may be a host name, IP address, or a network interface device, such as a "ey0" or "l0" or "wlan0"

- IP / Host Name: IP / hostname to use a specific IP address or the (local) host name 

- Equipment: a selection device to select the first available address of the interface, the device may be IPv4 or IPv6. 

- Device IPV4: selecting means selects the IPv4 address of the IPv4 (e.g. eth0, lo, em0) name of the device; 

- Device IPV6: selecting means selects the IPv6 IPv4 address (e.g. eth0, lo, em0) name of the device;

Proxy:  I do not want to address for the machine to send a Http request and want to use a proxy server then fill in

- The server name or IP: the proxy server name or IP address; 

- Port number: port number of the proxy; 

- User Name: Use the user name of the agent; 

- Password: user password

Published 59 original articles · won praise 19 · views 10000 +

Guess you like

Origin blog.csdn.net/weixin_43507959/article/details/104027294