Name

Request

Synopsis

$http ->Request([path, method, version, referer, accept, flags])

$http ->Request(hashref)

Description

Performs an HTTP request and returns an array containing the status code, the headers, and the content of the file. It is a one-step procedure that executes OpenRequest, SendRequest, QueryInfo, ReadFile, and finally Close. For a description of the parameters, see OpenRequest.

Get Perl in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.