Ryan Boren
879cb8231b
Remove unnecessary return by refs. Props wonderboymusic. fixes #21839
...
git-svn-id: https://develop.svn.wordpress.org/trunk@21792 602fd350-edb4-49c9-b593-d223f7449a82
2012-09-10 17:00:11 +00:00
Ryan Boren
4e1861e2a8
API for allowing cross origin resource sharing.
...
* Allowed origin whitelist that can be altered by plugins
* Validation of the request origin against the whitelist
* Send Access-Control-Allow-Origin if origin allowed
* get_http_origin(), get_allowed_http_origins(), is_allowed_http_origin(), send_origin_headers()
See #20681
git-svn-id: https://develop.svn.wordpress.org/trunk@20794 602fd350-edb4-49c9-b593-d223f7449a82
2012-05-15 18:46:03 +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
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
Peter Westwood
7121485a3b
Typo fix props duck_
...
git-svn-id: https://develop.svn.wordpress.org/trunk@17915 602fd350-edb4-49c9-b593-d223f7449a82
2011-05-13 10:00:40 +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
7beb454ef2
Always include class-http.php. see #12990
...
git-svn-id: https://develop.svn.wordpress.org/trunk@14079 602fd350-edb4-49c9-b593-d223f7449a82
2010-04-13 21:45:57 +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
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
Ryan Boren
f24e88359e
Trim trailing whites
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13268 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-21 00:03:42 +00:00
Dion Hulse
907b4933c5
Disable Redirection on HEAD requests. See #10624
...
git-svn-id: https://develop.svn.wordpress.org/trunk@13149 602fd350-edb4-49c9-b593-d223f7449a82
2010-02-14 10:41:07 +00:00
Mark Jaquith
a9d8e2bdcb
Update the inline documentation for HTTP to reflect the true order of HTTP transports
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12785 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-21 12:02:55 +00:00
Dion Hulse
bc0c67ff87
Fix Typo in r12747, Move cURL Redirection check higher. See #11305
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12749 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 09:31:37 +00:00
Dion Hulse
5c64824b2e
Allow WP_HTTP_Fopen to send extra headers and custom user-agents. See #11888
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12748 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 09:03:56 +00:00
Dion Hulse
f1cad2c2ae
Allow cURL to follow redirects when running under safe_mode or open_basedir. See #11305
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12747 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 08:15:52 +00:00
Dion Hulse
ebcae35244
Fix WP_Http_Streams to return a single set of headers in the event of redirections. Fixes #11555
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12746 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 08:05:58 +00:00
Dion Hulse
e988455155
Bring WP_Http_Streams maximum redirection into line with the rest of the transports. Fixes #11557
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12745 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-17 08:00:41 +00:00
Dion Hulse
f44d88c4e1
Correctly set the body on Curl requests with an empty body. Add a defensive check to WP_Http_Encoding::decompress to prevent the decompression functions running on empty strings. Fixes #11912
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12739 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-16 23:11:28 +00:00
Andrew Ozz
f992a598bb
When decompressing try to raw-inflate first, props dd32, fixes #11600
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12642 602fd350-edb4-49c9-b593-d223f7449a82
2010-01-07 10:26:33 +00:00
Ryan Boren
f0c5fb4f15
Don't use CURLOPT_CONNECTTIMEOUT_MS or CURLOPT_TIMEOUT_MS due to bugginess. fixes #11505 see #11499
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12472 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-21 19:34:38 +00:00
Ryan Boren
5322564b92
Properly handle float timeouts for all transports. Props mdawaffe. fixes #11468
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12424 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-17 16:13:58 +00:00
Ryan Boren
a8751f57f8
Remove unused variable. Props hakre. fixes #10765
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12367 602fd350-edb4-49c9-b593-d223f7449a82
2009-12-10 22:55:06 +00:00
Peter Westwood
89a9762c42
Ensure WP_DEBUG is always defined and simplify the checks on it. Fixes #11090 props nacin.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@12207 602fd350-edb4-49c9-b593-d223f7449a82
2009-11-18 08:22:49 +00:00
Andrew Ozz
343e591c2b
Expose HTTP PUT when supported, props mdawaffe, fixes #10855
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11977 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-26 22:52:42 +00:00
Ryan Boren
d280b41fd6
Fix content length setup. Props jacobsantos. fixes #10783
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11937 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-15 15:57:49 +00:00
Ryan Boren
667779223a
Use null instead of 0 when setting content length. Props noel. fixes #10783
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11932 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 20:49:18 +00:00
Ryan Boren
43c201d458
Remove trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11930 602fd350-edb4-49c9-b593-d223f7449a82
2009-09-14 14:03:32 +00:00
Andrew Ozz
49de179229
Don use has_action() before do_action() in http.php, props Viper007Bond, fixes #10625
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11835 602fd350-edb4-49c9-b593-d223f7449a82
2009-08-16 22:43:48 +00:00
Mark Jaquith
0604c85a91
Force IPv4 (127.0.0.1) when connecting to localhost, as many dev environments are not set up to serve on IPv6 (::1). props dd32. fixes #10045
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11759 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-31 09:40:16 +00:00
Mark Jaquith
7d5293d834
add some filters so that HTTP requests can be filtered. props johnbillion. fixes #10413
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11758 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-31 09:37:45 +00:00
Ryan Boren
17e3dc5b40
Better compression compat. Props dd32. see #10163
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11684 602fd350-edb4-49c9-b593-d223f7449a82
2009-07-02 23:18:27 +00:00
Andrew Ozz
55fed78c60
Add missing localization in WP_HTTP, props Denis-de-Bernardy, fixes #10231 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11653 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-26 14:41:12 +00:00
Ryan Boren
01ef7d87b0
Revert [11524]. curl has its problems, but so does everything else. see #9998 fixes #10104 for trunk
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11630 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-23 19:18:27 +00:00
Andrew Ozz
327118110d
Preferred transport: move curl to last position and fockopen to 2nd position due to higher compatibility, props DD32, fixes #9998
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11524 602fd350-edb4-49c9-b593-d223f7449a82
2009-06-06 06:51:35 +00:00
Ryan Boren
e12c642c54
Trim tailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11450 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-24 23:47:49 +00:00
Ryan Boren
2511d7e2c3
Fix bad call to str_replace. see #9395
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11355 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-16 04:46:31 +00:00
Ryan Boren
86744c9a4b
Support headers split over multiple lines. Props hakre, Denis-de-Bernardy, wnorris. fixes #9395
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11351 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-16 02:17:55 +00:00
Ryan Boren
4f60459b28
Add function_exists check for gzdecode. see #9761
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11271 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-11 19:34:24 +00:00
Peter Westwood
fe0e3123c9
Minor tidy up from merge of changes to BackPress.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11237 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-07 21:49:10 +00:00
Peter Westwood
96c57854d3
Pass just the headers array to should_decode. Fixes #9754 props willnorris.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11236 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-07 21:18:20 +00:00
Ryan Boren
47d56db997
Send valid host when using WP_Http_Fsockopen over SSL. Props mdawaffe. fixes #9699
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11154 602fd350-edb4-49c9-b593-d223f7449a82
2009-05-01 23:53:38 +00:00
Ryan Boren
bb1a97303f
Use _http_build_query() if PHP version < 5.1.2. Props hakre. fixes #9044
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11143 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-30 21:51:16 +00:00
Ryan Boren
70e2247b26
phpdoc udpates and error checks for http. Props DD32. fixes #8620
...
git-svn-id: https://develop.svn.wordpress.org/trunk@11091 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-26 23:54:59 +00:00
Ryan Boren
17bd503fb4
Correct spelling. Props jbsil. see #4011
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10870 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-04 17:55:48 +00:00
Ryan Boren
5f2218455d
Proxy support. Props DD32. see #4011
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10864 602fd350-edb4-49c9-b593-d223f7449a82
2009-04-03 18:23:13 +00:00
Ryan Boren
8d00b5d37d
Trim trailing whitespace
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10810 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-18 02:43:45 +00:00
Peter Westwood
a179893991
First pass of HTTP Proxy support. See #4011 props jacobsantos.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10692 602fd350-edb4-49c9-b593-d223f7449a82
2009-03-04 07:28:39 +00:00
Peter Westwood
7410e96063
Refactor the ssl blacklisting support info the individual test functions. Fixes #9078 props sivel.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10642 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-24 19:37:02 +00:00
Peter Westwood
6ccd5c2540
Better Notice fixing and place a protective cast in the cookie handler. Fixes #9068 props filosofo.
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10639 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-23 21:55:49 +00:00
Ryan Boren
4fecb1a03d
Fix notice. Props sivel. fixes #9068
...
git-svn-id: https://develop.svn.wordpress.org/trunk@10633 602fd350-edb4-49c9-b593-d223f7449a82
2009-02-23 06:40:03 +00:00