Overview

Namespaces

  • LINE
    • LINEBot
      • Constant
      • Event
        • MessageEvent
        • Parser
      • Exception
      • HTTPClient
      • ImagemapActionBuilder
      • MessageBuilder
        • Imagemap
        • TemplateBuilder
      • TemplateActionBuilder

Classes

  • Curl
  • CurlHTTPClient
  • Overview
  • Namespace
  • Class

Class Curl

cURL session manager

Namespace: LINE\LINEBot\HTTPClient
Package: LINE\LINEBot\HTTPClient
Located at LINEBot/HTTPClient/Curl.php
Methods summary
public
# __construct( string $url )

Initialize a cURL session

Initialize a cURL session

Parameters

$url
public boolean
# setoptArray( array $options )

Set multiple options for a cURL transfer

Set multiple options for a cURL transfer

Parameters

$options

Returns TRUE if all options were successfully set. If an option could not be successfully set, FALSE is immediately returned, ignoring any future options in the options array.

Returns

boolean
public boolean
# exec( )

Perform a cURL session

Perform a cURL session

Returns

boolean

Returns TRUE on success or FALSE on failure. However, if the CURLOPT_RETURNTRANSFER option is set, it will return the result on success, FALSE on failure.

public array
# getinfo( )

Gets information about the last transfer.

Gets information about the last transfer.

Returns

array
public integer
# errno( )

Returns

integer
Returns the error number or 0 (zero) if no error occurred.
public string
# error( )

Returns

string
Returns the error message or '' (the empty string) if no error occurred.
public
# __destruct( )

Closes a cURL session and frees all resources. The cURL handle, ch, is also deleted.

Closes a cURL session and frees all resources. The cURL handle, ch, is also deleted.

line-bot-sdk-php API documentation generated by ApiGen