タグ

関連タグで絞り込む (1)

タグの絞り込みを解除

httpとpeclに関するaki77のブックマーク (2)

  • PECL :: Package :: pecl_http

    This HTTP extension aims to provide a convenient and powerful set of functionality for one of PHPs major applications. It eases handling of HTTP urls, headers and messages, provides means for negotiation of a client's preferred content type, language and charset, as well as a convenient way to send any arbitrary data with caching and resuming capabilities. It provides powerful request functionalit

  • pecl_http の隠し機能? - 讃容日記

    今回は HttpRequest クラスのドキュメント化されていない (っぽい) 機能を紹介します。 なんと、サブクラスのメソッドとして onfinish が定義されている場合、リクエスト終了時に自動でコールされるのです。 onfinish メソッドは引数としてリクエストが成功したか (valid な HTTP Response が返ってきたか) を boolean として受け取ります。 利用例としてはこのようなクラスが考えられます。 <?php class UrlRetrieve extends HttpRequest { private $savepath; public function __construct($url, $savepath, $method = HttpRequest::METH_GET, $options = array()) { parent::__constr

    pecl_http の隠し機能? - 讃容日記
  • 1