PHP Doku:: Set options - function.httprequest-setoptions.html

Verlauf / Chronik / History: (33) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzSonstige DiensteHTTPThe HttpRequestHttpRequest::setOptions

Ein Service von Reinhard Neidl - Webprogrammierung.

Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
The HttpRequest

<<HttpRequest::setMethod

HttpRequest::setPostFields>>

HttpRequest::setOptions

(PECL pecl_http >= 0.10.0)

HttpRequest::setOptionsSet options

Beschreibung

public bool HttpRequest::setOptions ([ array $options ] )

Set the request options to use.

Siehe auch die vollständige Liste der Request-Optionen.

Parameter-Liste

options

an associative array, which values will overwrite the currently set request options; if empty or omitted, the options of the HttpRequest object will be reset

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.


Verdiene Geld mit Deiner Homepage oder deinem Blog: Setzte eine Textlinkwerbung und bestimme den Preis selber.
Einfach kostenlos anmelden und einen Platz auf Deiner Homepage anbieten.
Make money with your homepage or blog: Set a text link advertising and declare the price.
Register free of charge and offer a place on your homepage.
Ein BenutzerBeitrag:
- Beiträge aktualisieren...
mightye at gmail dot com
7.09.2007 19:59
Note that options cannot be changed on a request once it is added to a HttpRequestPool.  The pool reads the options and uses the values as they were set at the time it was added.

This means you can't do things like dynamically change the timeout each time you receive some data from the stream (essentially creating an idle timeout when doing things like calling remote long-running jobs).  However you can use low_speed_limit and low_speed_time options to simulate this behavior.



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)