Skip to content

Commit

Permalink
updated POD
Browse files Browse the repository at this point in the history
  • Loading branch information
trcjr committed Mar 26, 2011
1 parent f614773 commit e17ab60
Showing 1 changed file with 34 additions and 2 deletions.
36 changes: 34 additions & 2 deletions lib/LWP/UserAgent.pm
Expand Up @@ -1076,8 +1076,8 @@ needs to be performed. This request is then passed to one of the
request method the UserAgent, which dispatches it using the relevant request method the UserAgent, which dispatches it using the relevant
protocol, and returns a C<HTTP::Response> object. There are protocol, and returns a C<HTTP::Response> object. There are
convenience methods for sending the most common request types: get(), convenience methods for sending the most common request types: get(),
head() and post(). When using these methods then the creation of the head(), post(), put() and delete(). When using these methods then the
request object is hidden as shown in the synopsis above. creation of the request object is hidden as shown in the synopsis above.
The basic approach of the library is to use HTTP style communication The basic approach of the library is to use HTTP style communication
for all protocol schemes. This means that you will construct for all protocol schemes. This means that you will construct
Expand Down Expand Up @@ -1661,6 +1661,38 @@ This method will use the POST() function from C<HTTP::Request::Common>
to build the request. See L<HTTP::Request::Common> for a details on to build the request. See L<HTTP::Request::Common> for a details on
how to pass form content and other advanced features. how to pass form content and other advanced features.
=item $ua->put( $url, \%form )
=item $ua->put( $url, \@form )
=item $ua->put( $url, \%form, $field_name => $value, ... )
=item $ua->put( $url, $field_name => $value,... Content => \%form )
=item $ua->put( $url, $field_name => $value,... Content => \@form )
=item $ua->put( $url, $field_name => $value,... Content => $content )
This method will dispatch a C<PUT> request on the given $url, with
%form or @form providing the key/value pairs for the fill-in form
content. Additional headers and content options are the same as for
the get() method.
This method will use the PUT() function from C<HTTP::Request::Common>
to build the request. See L<HTTP::Request::Common> for a details on
how to pass form content and other advanced features.
=item $ua->delete( $url )
=item $ua->delete( $url, $field_name => $value, ... )
This method will dispatch a C<DELETE> request on the given $url. Additional
headers and content options are the same as for the get() method.
This method will use the DELETE() function from C<HTTP::Request::Common>
to build the request. See L<HTTP::Request::Common> for a details on
how to pass form content and other advanced features.
=item $ua->mirror( $url, $filename ) =item $ua->mirror( $url, $filename )
This method will get the document identified by $url and store it in This method will get the document identified by $url and store it in
Expand Down

0 comments on commit e17ab60

Please sign in to comment.