lowara.site/wp-includes/Requests/src/Auth
тел. +7 (499) 653-93-93



  • CNP
  • ESPA
  • FLYGT
  • GRUNDFOS
  • LOWARA
  • WILO
  • АРВК
  • БИТП
  • Запорная арматура
  • КИП и Автоматика
  • Насосные станции
  • Пожаротушение
  • Сервис и запасные части
  • Теплообменное оборудование
  • Торцевые уплотнения

    Заказать счет:

    Комментарий:



  • Количество наименований в текущем каталоге: 1

    lowara.site/wp-includes/Requests/src/Auth


    user, $this->pass) = $args; return; } if ($args !== null) { throw InvalidArgument::create(1, '$args', 'array|null', gettype($args)); } } /** * Register the necessary callbacks * * @see \WpOrg\Requests\Auth\Basic::curl_before_send() * @see \WpOrg\Requests\Auth\Basic::fsockopen_header() * @param \WpOrg\Requests\Hooks $hooks Hook system */ public function register(Hooks $hooks) { $hooks->register('curl.before_send', [$this, 'curl_before_send']); $hooks->register('fsockopen.after_headers', [$this, 'fsockopen_header']); } /** * Set cURL parameters before the data is sent * * @param resource|\CurlHandle $handle cURL handle */ public function curl_before_send(&$handle) { curl_setopt($handle, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($handle, CURLOPT_USERPWD, $this->getAuthString()); } /** * Add extra headers to the request before sending * * @param string $out HTTP header string */ public function fsockopen_header(&$out) { $out .= sprintf("Authorization: Basic %s\r\n", base64_encode($this->getAuthString())); } /** * Get the authentication string (user:pass) * * @return string */ public function getAuthString() { return $this->user . ':' . $this->pass; } }










    ООО "ПРОЕКТ СТ"

    115230, г. Москва Хлебозаводский проезд дом 7 стр. 9

    Бизнес-центр Калейдоскоп
    +7 (499) 653-9393 (многоканальный) info@snasos.ru
    www.snasos.ru | www.lowara-rf.ru  
      Яндекс.Метрика     
    SiteMap
    Москва 2024.
    ID страницы: 1714484929