Method | Description | |
---|---|---|
cookie ( $name ) : mixed | ||
cookies ( ) : array | ||
execute ( string $url, string $postString = '', array $headers = [] ) : string | Executes curl request. | |
getCookiesPath ( ) : string | ||
getCurrentUrl ( ) : string | Returns current url after all redirects | |
loadCookies ( string $username = '' ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | Load cookies for specified username | |
removeCookies ( ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | ||
setCookiesPath ( string $path ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | Set directory to store all cookie files. | |
setOptions ( array $options ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | Set custom Curl options to override default | |
useProxy ( string $host, string $port, string $auth = null, string $type = null ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | ||
useSocksProxy ( string $host, string $port, null $auth = null ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient |
public getCurrentUrl ( ) : string | ||
return | string |
public loadCookies ( string $username = '' ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | ||
$username | string | |
return | seregazhuk\PinterestBot\Api\Contracts\HttpClient |
public removeCookies ( ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | ||
return | seregazhuk\PinterestBot\Api\Contracts\HttpClient |
public setCookiesPath ( string $path ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | ||
$path | string | |
return | seregazhuk\PinterestBot\Api\Contracts\HttpClient |
public setOptions ( array $options ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | ||
$options | array | |
return | seregazhuk\PinterestBot\Api\Contracts\HttpClient |
public useProxy ( string $host, string $port, string $auth = null, string $type = null ) : seregazhuk\PinterestBot\Api\Contracts\HttpClient | ||
$host | string | '192.168.1.1' |
$port | string | '12345' |
$auth | string | Authentication string: 'username:password' |
$type | string | HTTP|SOCKS |
return | seregazhuk\PinterestBot\Api\Contracts\HttpClient |