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 |
Andrew Nacin
|
7ce20b12cf
|
Prevent fatal error when falling back to fsockopen in the setup-config.php key/salt HTTP request. fixes #13030.
git-svn-id: https://develop.svn.wordpress.org/trunk@14361 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-05-03 06:28:05 +00:00 |
Dion Hulse
|
b15624a124
|
Bail from WP_HTTP when a invalid URL is provided. Fixes #12964
git-svn-id: https://develop.svn.wordpress.org/trunk@14134 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-18 04:58:19 +00:00 |
Dion Hulse
|
aaf9bcf21d
|
Fix typo in Proxy Authorization header. Props thales.tede. Fixes #12995
git-svn-id: https://develop.svn.wordpress.org/trunk@14129 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-18 04:01:19 +00:00 |
Andrew Nacin
|
c423c01a44
|
Clean up the HTTP inline docs to reflect the times. props jacobsantos, fixes #12882.
git-svn-id: https://develop.svn.wordpress.org/trunk@14050 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-04-10 11:23:21 +00:00 |
Dion Hulse
|
52269956a3
|
Whitespace only Cookie pairs are not permitted; Skip them. Props josephscott. Fixes #12761
git-svn-id: https://develop.svn.wordpress.org/trunk@13887 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-30 10:22:30 +00:00 |
Dion Hulse
|
c784614283
|
Avoid notices for requests with no body. Also fixes a few race conditions related to headers. Fixes #11872
git-svn-id: https://develop.svn.wordpress.org/trunk@13849 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-28 00:56:43 +00:00 |
Dion Hulse
|
0620459e8d
|
Correct Array style for returning Multiple HTTP Headers. See #12045
git-svn-id: https://develop.svn.wordpress.org/trunk@13847 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-28 00:23:40 +00:00 |
Mark Jaquith
|
8bca8131a6
|
More pedantry. "Setup" is not a verb. http://notaverb.com/setup
git-svn-id: https://develop.svn.wordpress.org/trunk@13725 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-03-17 04:39:50 +00:00 |
Dion Hulse
|
913ab67ecb
|
Fix spelling typo's in r13484. See #12200
git-svn-id: https://develop.svn.wordpress.org/trunk@13485 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-28 04:27:32 +00:00 |
Dion Hulse
|
c74a4432b4
|
Support non-BASIC Authentication schemes in the HTTP API if server supports them. Props ssandison, See #4011, Fixes #12200
git-svn-id: https://develop.svn.wordpress.org/trunk@13484 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-28 04:24:04 +00:00 |
Dion Hulse
|
bc2c6922cb
|
New files svn:eol-style: native.
git-svn-id: https://develop.svn.wordpress.org/trunk@13448 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-27 03:37:38 +00:00 |
Andrew Nacin
|
f62e8796d9
|
Clean up redundant defined() check. Props TobiasBg fixes #12375
git-svn-id: https://develop.svn.wordpress.org/trunk@13422 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-26 00:37:20 +00:00 |
Ryan Boren
|
66b081abd2
|
Remove author tags. fixes #12366
git-svn-id: https://develop.svn.wordpress.org/trunk@13377 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-24 19:07:21 +00:00 |
Andrew Nacin
|
214d6b2ab0
|
Fix notice in WP_Http. Fixes #12316 props sivel.
git-svn-id: https://develop.svn.wordpress.org/trunk@13302 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-22 18:45:45 +00:00 |
Dion Hulse
|
03f690c3ff
|
Split WP_Http classes into separate file. Fixes #11559
git-svn-id: https://develop.svn.wordpress.org/trunk@13274 602fd350-edb4-49c9-b593-d223f7449a82
|
2010-02-21 02:06:24 +00:00 |