![]() ![]() Sent as the file name, but $data is sent as the file contents and no file is read from the file system. Will try to guess the content type using mime_content_type(). $data is null (default): $filename is treated as the name if a local file which willīe read and sent. Set a file to upload (using a POST request)Ĭan be used in two ways: 1. SetFileUpload(string $filename, string $formname, string $data, string $ctype) Reset all the HTTP parameters (auth,cookies,request, response, etc) SetAuth(string $user, string $password, string $type = 'basic')Ĭreate a HTTP authentication “Authorization:” header according to the specified user, password and Get status of streaming for received data SetStream(string|boolean $streamfile = true) Returns Zend\Http\Client setParameterPostĪddCookie(ArrayIterator|SetCookie|string $cookie, string $value, string $domain, string $expire, string $path, boolean $secure = false, boolean $httponly = true)Ĭheck if exists the header type specified Set the encoding type and the boundary (if any) SetEncType(string $encType, string $boundary) Returns Zend\Http\Zend\Uri\Http setMethod SetUri(string|Zend\Http\Zend\Uri\Http $uri) SetResponse(Zend\Http\Zend\Http\Response $response) SetRequest(Zend\Http\Zend\Http\Request $request) Returns Zend\Http\Client\Adapter getRequest While this method is not called more than one for a client, it is seperated from ->send() to preserve logic SetAdapter(Zend\Http\Client\Adapter|string $adapter) Set configuration parameters for this HTTP client SetConfig(Config|array $config = array ( )) Disabling this limits the range of values the cookies can contain. Enabling this breaks support with some web servers. Whether to pass the cookie value through urlencode/urldecode. If set to FALSEgetLastResponse() will return NULL. Whether to store last response for later retrieval with getLastResponse(). Useful and might improve performance if several consecutive requests to the same server are performed. Whether to enable keep-alive connections with the server. ![]() HTTP protocol version (usually ‘1.1’ or ‘1.0’)Ĭonnection adapter class to use (see this section) User agent identifier string (sent in request headers) Whether to strictly follow the RFC when redirecting (see this section) When set to FALSE, validation functions will be skipped. Whether perform validation on header names. Maximum number of redirections to follow (0 = none) Zend\Http\Client configuration parameters Parameter ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |