1
0
mirror of https://github.com/guzzle/guzzle.git synced 2025-02-24 18:13:00 +01:00

2350 Commits

Author SHA1 Message Date
Michael Dowling
c97511c0d7 Adding more robust query string parsing.
This commit adds a QueryParser class that is able to perform much more
robust query parsing. The query parser can track whether or not to use
a duplicate aggregator and whether or not to use numeric indices in
mutli-value key value pairs. You can now control how the query string
is url-decoded when parsing as well as disable url-decoding.

This change addresses nested key value pairs using 'a[b][c]=d' syntax
such that when parsed, will produce nested arrays containing
`['a' => ['b' => ['c' => 'd']]]`. This gets Guzzle query strings more
like PHP's parse_str().

This change closes #730 and closes #731 dealing with multipart POST
requests stripping "+" signs from values. POST key value pairs for
multipart requests are no longer modified at all, but rather sent over
the wire exactly as given.
2014-07-11 17:25:13 -07:00
Michael Dowling
49a14b2bbc Not applying POST headers until sending
Closes #706. This commit makes it so that POST headers are not
applied until sending a request. This allows you to do things like
change the query aggregator used before sending a request.
2014-07-07 22:30:38 -07:00
Michael Dowling
0016a005d7 Fixing multi-value header issue with StreamAdapter
Closes #725
2014-07-07 21:38:13 -07:00
Michael Dowling
16767bf79a Fixing a slash URL normalization issue
When using multiple slashes in URLs, normalization caused them to be combined
into a single slash. This commit fixes that issue to work exactly how Chrome
handles these types of URLs. Closes #713.
2014-07-07 16:06:31 -07:00
Michael Dowling
bdf3fb6e7c Merge pull request #728 from jamiehannaford/empty-hostname-fix
Make sure path leading slashes aren't added for empty hosts
2014-07-07 15:24:10 -07:00
Michael Dowling
b33038ee31 Merge pull request #727 from likeuntomurphy/patch-1
Update clients.rst
2014-07-07 14:40:08 -07:00
Jamie Hannaford
597ca11dd1 Make sure path leading slashes aren't added for empty hosts 2014-07-07 16:04:35 +02:00
likeuntomurphy
c972aaa38a Update clients.rst
The path component of the base URL must end with a slash; otherwise, the effective URL of $client->get('example-request') is https://api.twitter.com/example-request instead of https://api.twitter.com/v1.1/example-request.
2014-07-05 10:17:14 -04:00
Michael Dowling
095cf4db55 4.1.2 release 4.1.2 2014-06-18 11:22:41 -07:00
Michael Dowling
799acd437a Merge branch 'get_with_body' 2014-06-18 10:46:59 -07:00
Michael Dowling
6a55fbfb7e Simplifying how requests are created with cURL 2014-06-18 10:46:26 -07:00
Michael Dowling
521b9d8ae7 Moving the event conversion code to a function 2014-06-17 20:26:15 -07:00
Michael Dowling
ddbb19ea91 Merge pull request #709 from DavidPrevot/ICC-free
Strip away copyrighted ICC profile
2014-06-17 16:59:27 -07:00
David Prévot
4c93e6e771 Strip away copyrighted ICC profile 2014-06-17 17:56:33 -04:00
Michael Dowling
4d3751d8e0 Adding support for GET requests with body 2014-06-11 21:01:44 -07:00
Michael Dowling
c57f300af7 Merge pull request #701 from fredemmott/change-port
Change port used for unit tests
2014-06-10 12:18:37 -05:00
Michael Dowling
77fcee88be Merge pull request #700 from icambridge/autoinclude
Include Tests in Autoload
2014-06-10 12:17:49 -05:00
Fred Emmott
4db19b75d9 Change port used for unit tests
The purpose here is to allow running guzzle3 and guzzle4 tests at the
same time, on the same machine. This is needed for
http://hhvm.com/frameworks/ to work correctly. Ideally we'll make these
more isolated in the future, but this should be an unobtrusive
short-term fix.
2014-06-09 10:18:36 -07:00
Iain Cambridge
2dfc9bb681 Added Tests to auto complete for dev env 2014-06-09 08:57:54 +01:00
Michael Dowling
577a69ff7d 4.1.1 release 4.1.1 2014-06-08 13:00:20 -07:00
Michael Dowling
60533b3988 Merge pull request #699 from cordoval/patch-2
some typos
2014-06-08 12:27:48 -05:00
Luis Cordova
a4bd30cfb0 uppercasing after a . 2014-06-08 06:19:37 -05:00
Luis Cordova
adde1b2d1d number of request -> requests 2014-06-08 00:53:28 -05:00
Luis Cordova
8aecd0865c added missing been in 've sent' 2014-06-08 00:51:49 -05:00
Luis Cordova
6ccb4b3d61 exmaple -> example 2014-06-08 00:41:48 -05:00
Luis Cordova
3f52b9b094 typo is -> of 2014-06-08 00:30:42 -05:00
Luis Cordova
a2b24d0de4 remove unnecessary colon 2014-06-07 22:40:27 -05:00
Michael Dowling
8b09b04f96 Merge pull request #697 from guzzle/cookie_to_array
Adding ToArrayInterface to CookieJar
2014-06-07 22:12:11 -05:00
Michael Dowling
f0071843d3 Merge pull request #698 from cordoval/patch-2
typo uss -> use
2014-06-07 22:11:52 -05:00
Luis Cordova
eb580220bf typo uss -> use 2014-06-07 22:05:17 -05:00
Michael Dowling
768c215769 Merge commit '83a8997' into cookie_to_array 2014-06-07 11:56:39 -07:00
Michael Dowling
83a8997158 Implementing toArray() on CookieJar
Adding the ability to create a cookie jar and pass in an array of cookies.
2014-06-07 11:53:47 -07:00
Michael Dowling
d79c9820cf Merge pull request #693 from conradhappeliv/patch-1
Update Exception section in quickstart.rst
2014-06-04 16:57:31 -05:00
conradhappeliv
09d16e9f9b Update Exception section in quickstart.rst
Noticed that ClientErrorResponseException and ServerErrorResponse had been changed to ClientException and ServerException, respectively, but hadn't been changed in the docs.
2014-06-04 16:49:04 -05:00
Michael Dowling
3195ebbe24 Using the correct aggregation strategy when flattening
This change uses the query aggregator associated with the multi-part upload
object to ensure that the correct aggregation strategy is used when flattening
nested POST fields for a multi-part upload. Closes #690.
2014-06-04 14:36:17 -07:00
Michael Dowling
7ad15b806f Merge remote-tracking branch 'larowlan/multipart-forms' into fix-multipart-nested 2014-06-04 14:30:46 -07:00
Michael Dowling
6a871f2ba8 Adding a fix to ensure that POST requests can use the json option correctly 2014-06-04 11:17:31 -07:00
floriansemm
9990d52093 failing tests for json post request 2014-06-04 08:35:25 +02:00
Cameron Zemek
3e31618ba4 Fix PostBody::createMultipart() 2014-06-04 09:10:15 +10:00
Lee Rowlands
7f20c86fb7 Fail demonstrating nested form-fields 2014-06-04 09:02:56 +10:00
Michael Dowling
715a433100 Adding test to ensure adding new message factory options works 2014-06-03 09:43:15 -07:00
Ivan Batić
699e1ba205 Fixed the bug with cached class methods.
When get_class_methods(__CLASS__) was changed to get_class_methods($this), derived classes got a method list from the first instantiated MessageFactory, which could be the parent or a sibling class, so this is fixed now.
2014-06-03 11:31:23 +02:00
Michael Dowling
c346caa339 Merge pull request #684 from jbinfo/patch-1
POST request instead of GET
2014-05-30 10:33:57 -07:00
Lhassan Baazzi
923d8fb03d POST request instead of GET 2014-05-30 18:32:45 +01:00
Michael Dowling
26bf686c2f Merge pull request #681 from GrahamCampbell/banch
Update composer.json
2014-05-28 11:18:30 -07:00
Graham Campbell
e59cd38d35 Update composer.json 2014-05-28 10:01:09 +01:00
Michael Dowling
85a0ba7de0 4.1.0 release 4.1.0 2014-05-27 22:13:19 -07:00
Michael Dowling
6503778ae0 Some small HHVM hacks. See #538 2014-05-27 21:58:05 -07:00
Michael Dowling
03e9793efe Added setPort and getPort to RequestInterface.
- Removed request method constants from RequestInterface
- Closes #680
2014-05-27 21:16:50 -07:00
Michael Dowling
dd5eceed5d Adding a json_decode wrapper to functions.php 2014-05-27 10:52:13 -07:00