NAME
HTTP::WebTest::Plugin::SetRequest - Initializes test HTTP request
SYNOPSIS
Not Applicable
DESCRIPTION
This plugin initializes test HTTP request.
TEST PARAMETERS
url
URL to test. If schema part of URL is omitted (i.e. URL doesn't start with http://
, ftp://
, etc) then http://
is implied.
method
HTTP request method.
See RFC 2616 (HTTP/1.1 protocol).
Allowed values
GET
, PUT
Default value
GET
params
A list of name/value pairs to be passed as parameters to the URL. (This element is used to test pages that process input from forms.) Unless the method key is set to POST
, these pairs are URI-escaped and appended to the requested URL.
For example,
url = http://www.hotmail.com/cgi-bin/hmhome
params = ( curmbox
F001 A005
from
HotMail )
generates the HTTP request:
http://www.hotmail.com/cgi-bin/hmhome?curmbox=F001%20A005&from=HotMail
The names and values will be URI-escaped as defined by RFC 2396.
auth
A list which contains two elements: userid/password pair to be used for web page access authorization.
proxies
A list of service name/proxy URL pairs that specify proxy servers to use for requests.
For example (wtscript
usage):
proxies = ( http => http://http_proxy.mycompany.com
ftp => http://ftp_proxy.mycompany.com )
pauth
A list which contains two elements: userid/password pair to be used for proxy server access authorization.
user_agent
Set the product token that is used to identify the user agent on the network.
Default value
HTTP-WebTest/NN
where NN
is version number of HTTP-WebTest.
COPYRIGHT
Copyright (c) 2000-2001 Richard Anderson. All rights reserved.
Copyright (c) 2001,2002 Ilya Martynov. All rights reserved.
This module is free software. It may be used, redistributed and/or modified under the terms of the Perl Artistic License.