NAME
API::Eulerian::EDW::Request - API::Eulerian::EDW Request module.
DESCRIPTION
This module is used to send HTTP request to remote Peer.
METHODS
get()
Send HTTP GET request on given url
input
url : Remote url.
headers : HTTP headers.
file : [optional] Local file path used to store HTTP reply.
output
API::Eulerian::EDW::Status. On success a new entry named 'response' is inserted into the status.
post()
Send HTTP POST request on given url
input
url : Remote url.
headers : HTTP headers.
what : Content of POST request.
type : Content type of POST request.
output
API::Eulerian::EDW::Status. On success a new entry named 'response' is inserted into the status.
headers()
Create a new HTTP::Headers instance
output
Instance of an HTTP::Headers.
is_json()
Test if given HTTP response content is a JSON format
input
HTTP response.
output
1 - HTTP response content is in JSON format.
0 - HTTP response content isnt in JSON format.
json()
Get JSON message from HTTP response
input
HTTP response.
output
JSON message.
SEE ALSO
AUTHOR
Xavier Thorillon <x.thorillon@eulerian.com>
COPYRIGHT
Copyright (c) 2008 API::Eulerian::EDW Technologies Ltd http://www.eulerian.com
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA