Overview
  • Namespace
  • Class

Namespaces

  • Klarna
    • XMLRPC
      • Exception

Classes

  • Address
  • Calc
  • CheckoutServiceRequest
  • CheckoutServiceResponse
  • Config
  • Country
  • CurlHandle
  • CurlTransport
  • Currency
  • Encoding
  • Flags
  • Klarna
  • Language

Class CurlHandle

Wrapper class for the curl extension.

Namespace: Klarna\XMLRPC
Located at Klarna/XMLRPC/CurlHandle.php

Methods summary

public
# __construct( )

Constructor.

Constructor.

Throws

RuntimeException
if cURL extension is not loaded
public
# init( )

Initialize the handle.

Initialize the handle.

public
# setOption( integer $name, mixed $value )

Set a cURL option.

Set a cURL option.

Parameters

$name
CURLOPT_* constant
$value
Option value
public
# execute( )

Execute cURL handle.

Execute cURL handle.

public array|false
# getInfo( )

Get cURL info.

Get cURL info.

Returns

array|false
Array with info or false if error occurred
public string|false
# getError( )

Get cURL error.

Get cURL error.

Returns

string|false
Error message or false if no error occurred
public
# close( )

Close the cURL handle.

Close the cURL handle.

Magic methods summary

Properties summary

protected resource $handle

Internal cURL resource.

Internal cURL resource.

#
API documentation generated by ApiGen