![rest client download rest client download](https://sc.filehippo.net/images/t_app-cover-l,f_auto/p/f2719e7a-9b22-11e6-bb9b-00163ed833e7/1041334288/insomnia-screenshot.png)
- #Rest client download how to#
- #Rest client download Patch#
- #Rest client download software#
- #Rest client download code#
This software is copyright (c) 2008 by Miles Crawford. TODOĬaching, content-type negotiation, readable handles for body content. Return a HTTP header from the last response responseXpath ()Ī convienience wrapper that returns a XML::LibXML xpath context for the body content. Returns a list of HTTP header names from the last response responseHeader ( $header ) Return the response body content of the last request responseHeaders()
#Rest client download code#
Return the HTTP response code of the last request responseContent () Use these methods to gather information about the last requset performed. Issue a custom request, providing all possible values.
![rest client download rest client download](https://www.methodsandtools.com/archive/restapi2.gif)
Takes an optional hashref of custom request headers. Preform an HTTP HEAD to the resource specified. Preform an HTTP OPTIONS to the resource specified. Preform an HTTP DELETE to the resource specified. Takes an optional body content and hashref of custom request headers. Preform an HTTP POST to the resource specified.
#Rest client download Patch#
Preform an HTTP PATCH to the resource specified. Preform an HTTP PUT to the resource specified. Preform an HTTP GET to the resource specified. They can be combined with the response methods, such as: print $client->GET('/search/?q=foobar')->responseContent() GET ( $url, ) Request MethodsĮach of these methods makes an HTTP request, sets the internal state of the object, and returns the object. Returns a scalar query string for use in URLs. buildQuery ( )Ī convienience wrapper around URI::query_form for building query strings from a variety of data structures.
![rest client download rest client download](https://miro.medium.com/max/1838/1*JKCIFa8DW4kMeQkQjpx8Zw.png)
addHeader ( $header_name, $value )Īdd a custom header to any requests made by this client. REST::Client will provide a default for you if you do not set this. followīoolean that determins whether REST::Client attempts to automatically follow redirects/authentication.Īn LWP::UserAgent object, ready to make http requests. The password for the PKCS12 certificate specified with 'pkcs12'. The path to a PKCS12 certificate to be used for client authentication. The default is to not use a certificates authority. The path to a certificate authority file to be used to verify host certificates. The default is to not use a certificate/key pair. The path to a X509 key file to be used for client authentication. The path to a X509 certificate file to be used for client authentication. After the timeout the client will return a 500. timeoutĪ timeout in seconds for requests made with the client. The default is undef - you must include the host in your requests. Allows you to just specify the path when making requests. These can be called on the instantiated object to change or check values.Ī default host that will be prepended to all requests using relative URLs. Each config flag also has get/set accessors of the form getHost/setHost, getUseragent/setUseragent, etc. Takes an optional hash or hash reference or config flags. METHODS Construction and setup new ( )Ĭonstruct a new REST::Client. REST::Client provides a simple way to interact with HTTP RESTful resources.
#Rest client download how to#
# see LWP::UserAgent for how to define callback methods DESCRIPTION $client->setContentFile( \&callback_method ) # request responses can be written directly to a file #make requests, and set advanced options on it, for instance: #It is possible to access the L object REST::Client is using to # Requests can optionally automatically follow redirects and auth, defaults to #you may set a timeout on requests, in seconds Print $client->responseHeader('ResponseHeader') $client->addHeader('CustomHeader', 'Value') $client->PUT('/dir/file.xml', 'new content') REST::Client - A simple client for interacting with RESTful http/https resources VERSION