Michael Dowling
d7ff043ceb
Fixing an issue where the return values of Response header functions were not consistently a string
2013-05-29 22:10:31 -07:00
Michael Dowling
598567d166
Restructuring internal header structure, adding granular headers, move HeaderComparision because it is only for testing, and using a header collection
2013-05-29 22:10:31 -07:00
Michael Dowling
2822304d2e
Reverting the change that added the cloning of a body when cloning a
...
request. Closes #327
2013-05-27 20:10:36 -07:00
Michael Dowling
bc47b69923
Merge branch 'master' of github.com:guzzle/guzzle
2013-05-27 19:51:09 -07:00
Michael Dowling
b0d1c9ee22
Cleaning up header constructor
2013-05-27 19:38:26 -07:00
Lars Strojny
c7c1def18b
Fixing parsing of incomplete URLs
2013-05-26 14:09:45 +02:00
Michael Dowling
f833fda488
Deprecating setTokenizedHeader and getTokenizedHeader. These never actually worked correctly. Use $header->parseParams() instead.
2013-05-23 17:04:03 -07:00
Michael Dowling
e68bc9fd95
Adding the ability to parse Link headers in a response
...
Adding a parseParams method to header objects that can be used across the project.
2013-05-23 16:36:02 -07:00
Michael Dowling
b79634f189
Deprecating ZF1 log and cache adapters.
...
Removing ZF1 tests that required some hacky tests and composer settings
CS fixes
2013-05-10 21:16:12 -07:00
Michael Dowling
3b14a01963
Fixing tests
2013-05-10 20:46:21 -07:00
Michael Dowling
04a8d47b77
Better handling of setting the effective URL
2013-05-10 17:44:48 -07:00
Michael Dowling
8c1b080235
Correctly handling effective URLs for responses
2013-05-10 16:20:48 -07:00
Michael Dowling
1742bacfe1
Removing old redirect hack
2013-05-10 16:12:36 -07:00
Michael Dowling
82fa11cacd
Cleaning up request state management
...
Removing RedirectHistory (just use the HistoryPlugin)
Adding getEffectiveUrl() and getRedirectCount() to Response
Updating HistoryPlugin to more accurately reflect over the wire
2013-05-10 15:51:02 -07:00
Michael Dowling
aae077a12b
Test cleanup
2013-05-10 11:24:55 -07:00
Michael Dowling
c96e99ef15
More cleanup between requests and redirect history
2013-05-10 11:21:33 -07:00
Michael Dowling
56c93d08c2
More fixes to redirects
2013-05-10 11:01:59 -07:00
Michael Dowling
15abfe65e2
Removing some circular references
...
Better cleanup of CurlMulti handles on exceptions
curl.callback.progress emits a resource rather than CurlHandle
Removing curl_handle and curl_multi debug Request params
2013-05-09 15:34:47 -07:00
Michael Dowling
c2281ba97b
Fixing redirect responses
2013-04-30 11:30:34 -07:00
Michael Dowling
72aa99df4d
Cleaning up how responses are queued on requests
2013-04-28 17:53:45 -07:00
Michael Dowling
026a68286d
Using utf-8 charset for application/x-www-form-urlencoded POST requests
2013-04-24 15:36:24 -07:00
Michael Dowling
487250f2c6
Better handling of Content-Length and chunked Transfer-Encoding collisions
2013-04-23 12:41:26 -07:00
Michael Dowling
fb039fec6e
Adding test to ensure events are proxied
2013-04-16 13:30:26 -07:00
Michael Dowling
ebad28f026
Removing all the popsicle sticks from sending requests with curl_multi
2013-04-16 02:43:07 -07:00
Michael Dowling
e64ff8e8bc
Adding support for CurlFile in PHP 5.5. Closes #296 .
2013-04-13 19:52:36 -07:00
Michael Dowling
99c8f279cf
Fixing how errors are aggregated when sending multi transfers. Adding isRedirect() flag to requests.
2013-04-10 16:18:24 -07:00
Michael Dowling
5378566588
Fixing ReadLimitEntityBody::__toString() when the wrapped body is empty
2013-04-08 15:59:52 -07:00
Michael Dowling
de755baecc
Making the default CURLOPT_CONNECTTIMEOUT more forgiving and closer to the default value of 300s
2013-04-08 13:46:42 -07:00
Michael Dowling
cdb1da7d1a
Properly merging URLs and removing dot segments based on RFC 3986 section 5.4. Closes #288 and #289 .
2013-04-08 13:05:09 -07:00
Michael Dowling
6f044c5c7e
Using the Content-Type of the EntityBody if one cannot be determined by the request path
2013-04-06 17:50:51 -07:00
Michael Dowling
863998bbdb
Auto-detecting Content-Type of a request
...
- A Content-Type header will be added to a request automatically based
on the path of the request if a Content-Type header was not
specifically set. Pass `false` to the second parameter of
EntityEnclosingRequest::setBody() to not auto-detect a value.
- Removing default return value of application/octet-stream from
EntityBody::getContentType()
2013-04-06 17:36:57 -07:00
Michael Dowling
8ecb04187f
Adding more connection timeout checks
2013-04-05 10:51:51 -07:00
Michael Dowling
cfd7f672e8
Improving the CachingEntityBody
...
Fixing the stream size of a caching entity body to allow the size to be
the greater of the buffer or remote stream.
Fixing __toString() to properly combine the buffer and remote stream
Skipping bytes written over the remote stream to emulate how other r/w
PHP streams work (you overwrite bytes, you don't insert bytes and push
out things after it).
Using fstat() for local streams rather than loading streams into memory
and getting the strlen() (previously used for temp streams).
2013-04-03 10:24:33 -07:00
Michael Dowling
1e0a4c1b3e
Adding tests and fixes to the CachingEntityBody decorator
2013-04-02 12:35:09 -07:00
Michael Dowling
c94eaa8f0c
Adding a caching entity body decorator and cleaning up other entity body decorators
2013-04-01 18:22:26 -07:00
Michael Dowling
a59e5a1695
Adding cacert file to phar and more cert validation
...
Addresses #280 .
2013-03-31 23:35:10 -07:00
Michael Dowling
ab8d35fbdf
Adding the ability to PURGE requests from the cache. Addresses #241 .
2013-03-30 19:18:40 -07:00
Michael Dowling
9da0ac2123
You can now send any EntityEnclosingRequest with POST fields or POST
...
files and cURL will handle creating bodies
* Lots of cleanup to CurlHandle::factory and RequestFactory::createRequest
* POST requests using a custom entity body are now treated exactly like PUT
requests but with a custom cURL method. This means that the redirect
behavior of POST requests with custom bodies will not be the same as POST
requests that use POST fields or files (the latter is only used when
emulating a form POST in the browser).
* Closes #266
2013-03-28 23:48:55 -07:00
Michael Dowling
f2fd4bd43b
Better normalization of User-Agent header when creating requests. Closes #264
2013-03-11 15:42:27 -07:00
Nils Luxton
a29ab1eb32
Single PHP-style array values now parse into array.
2013-03-11 14:20:20 +00:00
thewilkybarkid
e91bf037ce
Response is only stale if the age is greater than the max-age
2013-02-25 11:12:27 +00:00
Michael Dowling
bc2a86d1b1
Allowing more return types from the Response::json() method. Closes #244
2013-02-24 19:38:40 -08:00
Michael Dowling
0234efc6e1
Not converting stream wrapper and type to lowercase
2013-02-23 15:35:22 -08:00
Michael Dowling
b723c4d35b
Moving the request param curl.emit_io to curl options under emit_io
2013-02-23 14:05:13 -08:00
Michael Dowling
ff6738a028
Refactoring setUserAgent and Removing Guzzle\Http\Utils
...
Guzzle\Http\Client::setUserAgent() now simply accepts a string as input
2013-02-22 22:07:19 -08:00
Michael Dowling
3f8568c76b
Removing unnecessary CURLOPT_USERAGENT settings
2013-02-21 16:38:58 -08:00
Adrian Macneil
47f4942f39
Allow calling setAuth() with a blank password. Closes #239
...
This supports APIs such as Stripe which only require a username to authenticate.
2013-02-16 10:38:38 +07:00
Michael Dowling
69ad0affa2
The encoding scheme used by Guzzle\Http\QueryString can now be
...
customized
Guzzle\Http\QueryString no longer accepts a callback function for
aggregation but rather uses QueryAggregatorInterface objects.
Addresses #238 .
2013-02-13 23:28:44 -08:00
Aurélien Thieriot
500b63986c
Make a choice when max-age is present twice
2013-02-13 10:04:45 +00:00
Michael Dowling
17af797f0f
Adding a way to explode all headers on glue using the normalize method
2013-02-10 19:30:29 -08:00