- Timestamp:
- 2013-04-15T20:49:36+12:00 (11 years ago)
- Location:
- main/trunk/greenstone2/perllib/cpan
- Files:
-
- 30 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone2/perllib/cpan/LWP.pm
r27174 r27183 1 1 package LWP; 2 2 3 $VERSION = " 6.05";3 $VERSION = "5.837"; 4 4 sub Version { $VERSION; } 5 5 6 require 5.00 8;6 require 5.005; 7 7 require LWP::UserAgent; # this should load everything you need 8 8 … … 10 10 11 11 __END__ 12 13 =encoding utf-814 12 15 13 =head1 NAME … … 102 100 103 101 Let us start with this quote from the HTTP specification document 104 <URL:http://www.w3.org/ Protocols/>:102 <URL:http://www.w3.org/pub/WWW/Protocols/>: 105 103 106 104 =over 3 … … 155 153 =item * 156 154 157 B<method> is a short string that tells what kind of155 The B<method> is a short string that tells what kind of 158 156 request this is. The most common methods are B<GET>, B<PUT>, 159 157 B<POST> and B<HEAD>. … … 161 159 =item * 162 160 163 B<uri> is a string denoting the protocol, server and161 The B<uri> is a string denoting the protocol, server and 164 162 the name of the "document" we want to access. The B<uri> might 165 163 also encode various other parameters. … … 167 165 =item * 168 166 169 B<headers> containsadditional information about the167 The B<headers> contain additional information about the 170 168 request and can also used to describe the content. The headers 171 169 are a set of keyword/value pairs. … … 173 171 =item * 174 172 175 B<content> is an arbitrary amount of data.173 The B<content> is an arbitrary amount of data. 176 174 177 175 =back … … 186 184 =item * 187 185 188 B<code> is a numerical value that indicates the overall186 The B<code> is a numerical value that indicates the overall 189 187 outcome of the request. 190 188 191 189 =item * 192 190 193 B<message> is a short, human readable string that191 The B<message> is a short, human readable string that 194 192 corresponds to the I<code>. 195 193 196 194 =item * 197 195 198 B<headers> containsadditional information about the196 The B<headers> contain additional information about the 199 197 response and describe the content. 200 198 201 199 =item * 202 200 203 B<content> is an arbitrary amount of data.201 The B<content> is an arbitrary amount of data. 204 202 205 203 =back … … 214 212 =item is_success() 215 213 216 The request was successfully received, understood or accepted.214 The request was was successfully received, understood or accepted. 217 215 218 216 =item is_error() … … 254 252 =item * 255 253 256 B<timeout> specifies how much time we give remote servers to254 The B<timeout> specifies how much time we give remote servers to 257 255 respond before the library disconnects and creates an 258 256 internal I<timeout> response. … … 260 258 =item * 261 259 262 B<agent> specifies the name that your application useswhen it260 The B<agent> specifies the name that your application should use when it 263 261 presents itself on the network. 264 262 265 263 =item * 266 264 267 B<from>can be set to the e-mail address of the person265 The B<from> attribute can be set to the e-mail address of the person 268 266 responsible for running the application. If this is set, then the 269 267 address will be sent to the servers with every request. … … 271 269 =item * 272 270 273 B<parse_head> specifies whether we should initialize response271 The B<parse_head> specifies whether we should initialize response 274 272 headers from the E<lt>head> section of HTML documents. 275 273 276 274 =item * 277 275 278 B<proxy> and B<no_proxy>specify if and when to go through279 a proxy server. <URL:http://www.w3.org/ History/1994/WWW/Proxies/>280 281 =item * 282 283 B<credentials> providesa way to set up user names and276 The B<proxy> and B<no_proxy> attributes specify if and when to go through 277 a proxy server. <URL:http://www.w3.org/pub/WWW/Proxies/> 278 279 =item * 280 281 The B<credentials> provide a way to set up user names and 284 282 passwords needed to access certain services. 285 283 … … 559 557 provide. The L<lwpcook> manpage is the libwww-perl cookbook that contain 560 558 examples of typical usage of the library. You might want to take a 561 look at how the scripts L<lwp-request>, L<lwp- download>, L<lwp-dump>562 a nd L<lwp-mirror> are implemented.559 look at how the scripts L<lwp-request>, L<lwp-rget> and L<lwp-mirror> 560 are implemented. 563 561 564 562 =head1 ENVIRONMENT … … 585 583 L<LWP::UserAgent>. 586 584 587 =item PERL_LWP_ENV_PROXY 588 589 If set to a TRUE value, then the C<LWP::UserAgent> will by default call 590 C<env_proxy> during initialization. This makes LWP honor the proxy variables 591 described above. 592 593 =item PERL_LWP_SSL_VERIFY_HOSTNAME 594 595 The default C<verify_hostname> setting for C<LWP::UserAgent>. If 596 not set the default will be 1. Set it as 0 to disable hostname 597 verification (the default prior to libwww-perl 5.840. 598 599 =item PERL_LWP_SSL_CA_FILE 600 601 =item PERL_LWP_SSL_CA_PATH 602 603 The file and/or directory 604 where the trusted Certificate Authority certificates 605 is located. See L<LWP::UserAgent> for details. 585 =item PERL_LWP_USE_HTTP_10 586 587 Enable the old HTTP/1.0 protocol driver instead of the new HTTP/1.1 588 driver. You might want to set this to a TRUE value if you discover 589 that your old LWP applications fails after you installed LWP-5.60 or 590 better. 606 591 607 592 =item PERL_HTTP_URI_CLASS … … 662 647 as well as: 663 648 664 http://github.com/ libwww-perl/libwww-perl649 http://github.com/gisle/libwww-perl 665 650 666 651 The best place to discuss this code is on the <[email protected]>
Note:
See TracChangeset
for help on using the changeset viewer.