Copyright (C) 2000-2012 |
Manpages HTTP::RequestSection: User Contributed Perl Documentation (3)Updated: 2001-11-15 Index Return to Main Contents NAMEHTTP::Request - Class encapsulating HTTP RequestsSYNOPSISrequire HTTP::Request; $request = HTTP::Request->new(GET => 'http://www.oslo.net/'); DESCRIPTION"HTTP::Request" is a class encapsulating HTTP style requests, consisting of a request line, some headers, and some (potentially empty) content. Note that the LWP library also uses this HTTP style requests for non-HTTP protocols.Instances of this class are usually passed to the "request()" method of an "LWP::UserAgent" object:
$ua = LWP::UserAgent->new; $request = HTTP::Request->new(GET => 'http://www.oslo.net/'); $response = $ua->request($request);"HTTP::Request" is a subclass of "HTTP::Message" and therefore inherits its methods. The inherited methods most often used are header(), push_header(), remove_header(), and content(). See HTTP::Message for details. The following additional methods are available:
SEE ALSOHTTP::Headers, HTTP::Message, HTTP::Request::CommonCOPYRIGHTCopyright 1995-2001 Gisle Aas.This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
IndexThis document was created by man2html, using the manual pages. Time: 03:08:31 GMT, April 27, 2024 |