Dion Hulse
|
5e9301f14c
|
WP_HTTP: Curl: Handle Redirections in PHP rather than internally in Curl, Simplifies code flow between safe_mode On and Off, and works around certain bugs. Props simonwheatley for initial patch. Fixes #20219, Fixes #17490
git-svn-id: https://develop.svn.wordpress.org/trunk@20208 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-03-18 05:00:05 +00:00 |
Dion Hulse
|
652212f123
|
WP_Http: cURL: Use the parsed args $r, rather than the raw $args. Mentioned in #20219
git-svn-id: https://develop.svn.wordpress.org/trunk@20207 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-03-18 03:12:12 +00:00 |
Dion Hulse
|
f2edc4b2c6
|
WP_HTTP: Send the body with custom method requests when using cURL. Fixes #18589
git-svn-id: https://develop.svn.wordpress.org/trunk@20183 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-03-15 05:33:38 +00:00 |
Dion Hulse
|
0bef3ee02a
|
Support custom HTTP Methods in WP_Http_Curl. Brings it in line with the other HTTP transports of respecting the requested method. Props zx2c4. Fixes #18589
git-svn-id: https://develop.svn.wordpress.org/trunk@19696 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-01-06 12:53:44 +00:00 |
Ryan Boren
|
a8d77cbae9
|
User lowercase true, false, null instead of uppercase. Props c3mdigital, mfields. fixes #16302
git-svn-id: https://develop.svn.wordpress.org/trunk@19687 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-01-05 20:50:54 +00:00 |
Ryan Boren
|
5e76729992
|
One newline is enough.
git-svn-id: https://develop.svn.wordpress.org/trunk@19684 602fd350-edb4-49c9-b593-d223f7449a82
|
2012-01-05 20:10:39 +00:00 |
Ryan Boren
|
cb374258bb
|
Remove extraneuos newlines
git-svn-id: https://develop.svn.wordpress.org/trunk@19623 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-12-21 18:42:11 +00:00 |
Ryan Boren
|
676ba7043e
|
Use one space, not two, after trailing punctuation. fixes #19537
git-svn-id: https://develop.svn.wordpress.org/trunk@19593 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-12-13 23:45:31 +00:00 |
Ryan Boren
|
4399cf7610
|
Avoid E_STRICT notices. see #18975
git-svn-id: https://develop.svn.wordpress.org/trunk@19094 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-31 19:38:46 +00:00 |
Ryan Boren
|
fd10e500e4
|
Pinking shears
git-svn-id: https://develop.svn.wordpress.org/trunk@19054 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-24 19:13:23 +00:00 |
Dion Hulse
|
81197a2dd5
|
Respect the Content-Type header developers pass to WP_HTTP. Fixes #18982
git-svn-id: https://develop.svn.wordpress.org/trunk@19000 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-10-19 04:48:00 +00:00 |
Dion Hulse
|
6069fe3c61
|
Document the Magic numbering in WP_Http_Encoding::compatible_gzinflate(). Fixes #18273
git-svn-id: https://develop.svn.wordpress.org/trunk@18806 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-29 02:10:35 +00:00 |
Dion Hulse
|
36f2e9a22f
|
Pass $args and $url to the http_api_debug action to improve debugging. Props johnbillion. Fixes #18732
git-svn-id: https://develop.svn.wordpress.org/trunk@18805 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-29 01:42:09 +00:00 |
Dion Hulse
|
d07aeb8b07
|
Add inflation support for java.util.zip.Deflater in WP_Http_Encoding::compatible_gzinflate(). Fixes #18273
git-svn-id: https://develop.svn.wordpress.org/trunk@18718 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-19 14:43:43 +00:00 |
Jon Cave
|
205aa5ba5c
|
Fix typos in documentation (wp-includes/[a-h]). See #18560.
git-svn-id: https://develop.svn.wordpress.org/trunk@18633 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-09-03 16:02:41 +00:00 |
Ryan Boren
|
90ec88ca6e
|
Empty headers instance var instead of unsetting to avoid warning. Props chrisbliss18. fixes #18157
git-svn-id: https://develop.svn.wordpress.org/trunk@18457 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-07-21 21:44:35 +00:00 |
Ryan Boren
|
46d96c7704
|
Bring out the pinking shears.
git-svn-id: https://develop.svn.wordpress.org/trunk@18254 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-10 23:01:45 +00:00 |
Ryan Boren
|
d2af1830bc
|
HTTP API PHP Doc Updates. Props sivel. fixes #17724
git-svn-id: https://develop.svn.wordpress.org/trunk@18185 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-06-08 00:51:31 +00:00 |
Peter Westwood
|
93fe935843
|
Fix typos and inconsistencies in PHPdoc / function declarations. See #17414 props duck_
git-svn-id: https://develop.svn.wordpress.org/trunk@17925 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-14 09:50:20 +00:00 |
Peter Westwood
|
c30cd0193d
|
Introduce wp_http_supports as a much less hacky replacement for the http_transport_(get|post)_debug hooks that plugins could have
been using to detect if things like ssl requests were working.
See #17251 props mdawaffe
git-svn-id: https://develop.svn.wordpress.org/trunk@17914 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-05-13 09:56:59 +00:00 |
Ryan Boren
|
9730cb8d15
|
Constructor cleanup. Props ocean90. fixes #16768
git-svn-id: https://develop.svn.wordpress.org/trunk@17771 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-29 20:05:12 +00:00 |
Dion Hulse
|
0722876118
|
Allow the cURL transport to handle '0' response bodies. Fixes #17223
git-svn-id: https://develop.svn.wordpress.org/trunk@17692 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-23 13:49:52 +00:00 |
Dion Hulse
|
cff5b0ac2a
|
Remove support for the PHP HTTP Extension from WP_HTTP. The PHP HTTP Extension is a wrapper around libcurl and fopen() providing limited configuration and is supported on a minority of servers due to its non-default inclusion. Props sivel. Fixes @16978
git-svn-id: https://develop.svn.wordpress.org/trunk@17659 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-19 04:22:59 +00:00 |
Dion Hulse
|
2b6b333f6b
|
Verify certificate matches both the common name and the provided hostname. WP_HTTP_Curl requires CURLOPT_SSL_VERIFYHOST be either 2 or false. Props sivel. Fixes #16904
git-svn-id: https://develop.svn.wordpress.org/trunk@17616 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-07 08:38:36 +00:00 |
Dion Hulse
|
6a7acd8252
|
explode always returns an array in this context. Props hakre. Fixes #16958
git-svn-id: https://develop.svn.wordpress.org/trunk@17600 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-05 06:41:51 +00:00 |
Dion Hulse
|
7b08c38074
|
Fix warning in HTTP Header parsing where response message is not specified. Props hakre. Fixes #16885
git-svn-id: https://develop.svn.wordpress.org/trunk@17599 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-05 06:21:56 +00:00 |
Dion Hulse
|
6fef66fc89
|
Streamline WP_Http_*::test() methods: Check basic SSL requirements, only allow filters to disable transports, not enable them after ::test() has failed. Props mdawaffe for the initial patch. See #16606
git-svn-id: https://develop.svn.wordpress.org/trunk@17598 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-05 06:09:43 +00:00 |
Dion Hulse
|
14d2e5d358
|
Return 4xx errors as a standard response from WP_HTTP, Brings it in line with the rest of the transports for 4xx error handling. See #17010
git-svn-id: https://develop.svn.wordpress.org/trunk@17597 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-04-05 04:06:40 +00:00 |
Dion Hulse
|
6901f20e9b
|
Use the correct variable name; Simpler static initialisation. Props hakre. See #11613 & #16978
git-svn-id: https://develop.svn.wordpress.org/trunk@17566 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-28 09:55:15 +00:00 |
Dion Hulse
|
fbb5ad3afc
|
Correct logic for cURL Errors, add extra sanity protection in ::processHeaders to guard against null inputs. See #16236
git-svn-id: https://develop.svn.wordpress.org/trunk@17563 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-26 03:32:05 +00:00 |
Dion Hulse
|
ec8280cfd8
|
First run of introducing Stream-To-File for the WP_HTTP API. Reduces memory consumption during file downloads. Implemented in download_url() for upgraders. Props sivel. See #16236
git-svn-id: https://develop.svn.wordpress.org/trunk@17555 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-25 02:42:20 +00:00 |
Dion Hulse
|
3591957d49
|
Allow for array('redirection' => 0) to bypass WP_Error on redirects being encountered; Allows HEAD requests WITH 'redirection' > 0 specified at call time to follow redirections; Standardises on return values from all transports to act the same based on the Unit Tests. Fixes #16855
git-svn-id: https://develop.svn.wordpress.org/trunk@17551 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-24 05:18:34 +00:00 |
Dion Hulse
|
048fcd1cce
|
Fix WP_HTTP to only make a request upon a working transport, as well as to allow Unit Testing. Removes the getTransport() & postTransport() methods as they're no longer needed, replaces them with a single _dispatch_request() method. Fixes #11613
git-svn-id: https://develop.svn.wordpress.org/trunk@17550 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-24 02:16:13 +00:00 |
Dion Hulse
|
615e0c5bc7
|
Prune PHP5 compat checks in WP_Http, WP_Http_Curl & WP_Http_Streams. Only removes pre PHP 5.2.4 conditional code. See #13915
git-svn-id: https://develop.svn.wordpress.org/trunk@17535 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-23 11:58:09 +00:00 |
Dion Hulse
|
1a22b56c53
|
Remove PHP4 based WP_Http_Fopen class. Props sivel for initial patch. See #16917 Fixes #13915
git-svn-id: https://develop.svn.wordpress.org/trunk@17534 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-03-23 11:35:41 +00:00 |
Andrew Nacin
|
bf475c9d6f
|
Just a typo of the class name. fixes #14786.
git-svn-id: https://develop.svn.wordpress.org/trunk@17282 602fd350-edb4-49c9-b593-d223f7449a82
|
2011-01-13 05:08:40 +00:00 |
Andrew Nacin
|
af3222dc7e
|
We only need strpos here. Ensures PHP4 compat. props mailnew2ster, fixes #14187.
git-svn-id: https://develop.svn.wordpress.org/trunk@16762 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-07 07:17:06 +00:00 |
Ryan Boren
|
36a4508140
|
Update since phpdoc. Props demetris. fixes #15445
git-svn-id: https://develop.svn.wordpress.org/trunk@16660 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-12-01 19:24:38 +00:00 |
Andrew Nacin
|
5183bee738
|
WP_Http_ExtHTTP variable fix. Don't pass an empty array to http_request, props mdawaffe, fixes #13730.
git-svn-id: https://develop.svn.wordpress.org/trunk@16450 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-11-18 03:34:28 +00:00 |
Dion Hulse
|
80fc91b2ed
|
Support wildcard domains in WP_PROXY_BYPASS_HOSTS and WP_ACCESSIBLE_HOSTS. Fixes #14636
git-svn-id: https://develop.svn.wordpress.org/trunk@15911 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-10-22 10:27:35 +00:00 |
Dion Hulse
|
fd8152d074
|
Remove redundant strtolower() in WP_HTTP. Props rmccue. Fixes #14168
git-svn-id: https://develop.svn.wordpress.org/trunk@15362 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-07-02 07:52:14 +00:00 |
Andrew Nacin
|
6611e799ea
|
Some whitespace in WP_HTTP. props hakre, see #13897.
git-svn-id: https://develop.svn.wordpress.org/trunk@15309 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-23 14:26:57 +00:00 |
Dion Hulse
|
b690dd5bfe
|
Some coding standards cleanups for WP_HTTP. Props hakre for initial patch. See #13897
git-svn-id: https://develop.svn.wordpress.org/trunk@15285 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-19 07:02:09 +00:00 |
Dion Hulse
|
ef753d5a64
|
Fix typo in HTTP Class. Props filosofo. Fixes #13897 for trunk
git-svn-id: https://develop.svn.wordpress.org/trunk@15284 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-19 06:54:21 +00:00 |
Ryan Boren
|
92fe0bb5b6
|
Fix logic
git-svn-id: https://develop.svn.wordpress.org/trunk@15143 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-06-04 20:11:06 +00:00 |
Andrew Nacin
|
8d6694a68d
|
Revert part of r14429 as it broke HTTP in setup-config. Revisit when we decide to fully deprecate get_bloginfo(url). see #9008.
git-svn-id: https://develop.svn.wordpress.org/trunk@14455 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 21:41:45 +00:00 |
Andrew Nacin
|
3d3322c1d6
|
Revert accidental removal of parse_url(). see #9008, props PeteMall.
git-svn-id: https://develop.svn.wordpress.org/trunk@14430 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 04:57:22 +00:00 |
Ron Rennick
|
c2b89e7330
|
use homeurl(), props PeteMall, see #9008
git-svn-id: https://develop.svn.wordpress.org/trunk@14429 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-04 00:28:29 +00:00 |
Ryan Boren
|
d783952469
|
Strip trailing whites.
git-svn-id: https://develop.svn.wordpress.org/trunk@14404 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 20:26:11 +00:00 |
Andrew Nacin
|
96fd06e10d
|
Remove debug.
git-svn-id: https://develop.svn.wordpress.org/trunk@14363 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 07:12:26 +00:00 |