Package DE_EPAGES::Core::API::Net
Functions for TCP/IP networking.
@EXPORT_OK |
Functions
GetFile
Loads a file from internet via HTTP "GET" request and saves it to filename.
Syntax |
my $ResponseCode = GetFile($Url, $FileName); my $ResponseCode = GetFile($Url, $FileName, $Timeout); |
Input |
|
Return |
|
GetHttpContent
Load document from internet.
Syntax |
$Content = GetHttpContent($Url); |
Input |
|
Return |
|
GetHttpResponse
Loads a document from internet via HTTP "GET" request.
Syntax |
$Response = GetHttpResponse($Url); $Response = GetHttpResponse($Url, $Timeout); $Response = GetHttpResponse($Url, $Timeout, $UserAgentString); |
Input |
|
Return |
|
Int2Ip
Converts an integer to an IP.
Syntax |
$IP = Int2Ip($IP); |
Input |
|
Return |
|
Ip2Int
Converts an ip to an integer.
Syntax |
$Int = Ip2Int($IP); |
Input |
|
Return |
|
SupportedIpVersions
Returns an array of address families containing one/more of: 6 (for IPv6), 4 (for IPv4)
Syntax |
@IpVersions = SupportedIpVersions(); |
Return |
|
localhostName
Returns the name of localhost: - ipv6-localhost: if UNIX and IPv6 works - localhost: otherwise
Syntax |
$localhost = localhostName(); |
Return |
|