Commit Graph

65 Commits

Author SHA1 Message Date
westi
add8403cec First pass of HTTP Proxy support. See #4011 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10692 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-03-04 07:28:39 +00:00
westi
5a22f22cdc Refactor the ssl blacklisting support info the individual test functions. Fixes #9078 props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10642 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-24 19:37:02 +00:00
westi
0c17950d3e Better Notice fixing and place a protective cast in the cookie handler. Fixes #9068 props filosofo.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10639 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-23 21:55:49 +00:00
ryan
ffb28cf66d Fix notice. Props sivel. fixes #9068
git-svn-id: http://svn.automattic.com/wordpress/trunk@10633 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-23 06:40:03 +00:00
westi
c7f59f6cfe Add support for blocking all outbound HTTP requests. Improve HTTP Api phpdoc. Tidy up the poetry. Fixes #8927 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10625 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-22 09:58:47 +00:00
ryan
4c5da3c279 Handle empty pairs in cookies. Props DD32. fixes #9101
git-svn-id: http://svn.automattic.com/wordpress/trunk@10565 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-12 20:44:34 +00:00
ryan
a114c10ca9 Add cookies arg to defaults to avoid warnings. Props beaulebens. fixes #9049
git-svn-id: http://svn.automattic.com/wordpress/trunk@10563 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-12 20:37:23 +00:00
azaozz
dad4caa7e5 Fix PHP notices in HTTP API Cookies, props beaulebens, fixes #9068
git-svn-id: http://svn.automattic.com/wordpress/trunk@10524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-08 04:20:34 +00:00
ryan
e8dc44ad07 Cookie support for HTTP API. Props beaulebens. fixes #9049 #9037 #8727
git-svn-id: http://svn.automattic.com/wordpress/trunk@10512 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-05 21:59:37 +00:00
ryan
515fd53ef5 HTTP API updates and fixes. Props sivel. see #8702
git-svn-id: http://svn.automattic.com/wordpress/trunk@10509 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-05 20:47:46 +00:00
ryan
091b7a876b Revert 10507. Had extra bits in. see #8702
git-svn-id: http://svn.automattic.com/wordpress/trunk@10508 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-05 20:47:30 +00:00
ryan
80a6b13f81 HTTP API updates and fixes. Props sivel. see #8702
git-svn-id: http://svn.automattic.com/wordpress/trunk@10507 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-02-05 20:46:39 +00:00
westi
fe07a83717 First pass compression support for the HTTP API. See #8674 props jacobsantos.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10410 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-22 21:16:11 +00:00
westi
d37f5eb754 update phpdoc to hilight return of WP_Error objects on failures. See #8620.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10359 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-14 21:40:41 +00:00
ryan
2e8544be9a Fix URL checking and add phpdoc. Props jacobsantos. fixes #8787 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10320 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-06 17:29:24 +00:00
ryan
e634271853 And instead of or. Props mercurix. fixes #8787 for trunk
git-svn-id: http://svn.automattic.com/wordpress/trunk@10309 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-05 18:42:02 +00:00
azaozz
970a1c8dc6 Pass the URL to the 'http_request_args' filter, props DD32, fixes #8780
git-svn-id: http://svn.automattic.com/wordpress/trunk@10294 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2009-01-04 04:34:01 +00:00
ryan
0e3e92e8b9 Pass ref in array to avoid warning. fixes #8766
git-svn-id: http://svn.automattic.com/wordpress/trunk@10289 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-31 22:33:46 +00:00
ryan
c7c9f46367 Chunked decoding fix from jacobsantos. fixes #8618
git-svn-id: http://svn.automattic.com/wordpress/trunk@10283 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-31 03:02:53 +00:00
ryan
4acba68cbc Chunked decode fixes. Don't return WP_Error for body. Props jacobsantos. see #8618
git-svn-id: http://svn.automattic.com/wordpress/trunk@10282 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-30 22:53:35 +00:00
ryan
5eb5d3df7c HTTP API debug and action for curl object. Props jacobsantos. see #8727
git-svn-id: http://svn.automattic.com/wordpress/trunk@10281 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-30 22:45:51 +00:00
ryan
6587bdff8d Set Content-Length to 0 for null body requests. Props Jalada. see #8605
git-svn-id: http://svn.automattic.com/wordpress/trunk@10211 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-16 22:07:18 +00:00
westi
57cabf48fc Test for curl_exec as well to catch hosts that disable it but not curl_init. Fixes #8577 for trunk props sivel.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10190 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-11 18:08:58 +00:00
ryan
e89192b1a8 Strip trailing whitespace
git-svn-id: http://svn.automattic.com/wordpress/trunk@10150 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-09 18:03:31 +00:00
ryan
5382d2b80e Fix raw_response code in Streams transport. Props jacobsantos. fixes #8476
git-svn-id: http://svn.automattic.com/wordpress/trunk@10117 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-07 20:30:59 +00:00
westi
d9778f61f3 Ensure the curl transport supports HEAD requests. Merge from BackPress props sambauers.
git-svn-id: http://svn.automattic.com/wordpress/trunk@10087 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-06 10:09:05 +00:00
ryan
332477a986 user_agent, not user-agent, for Streams transport. Props alexrabe. fixes #8500
git-svn-id: http://svn.automattic.com/wordpress/trunk@10072 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-05 20:12:51 +00:00
ryan
b5f623a9ea Round timeouts less then 1 but greater than 0 to 1 for curl transport. see #8086
git-svn-id: http://svn.automattic.com/wordpress/trunk@10025 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-12-03 19:56:05 +00:00
ryan
f91d22aadb If api.wp.org request blocks, make sure another requests isn't scheduled for 12 hours. see #8347
git-svn-id: http://svn.automattic.com/wordpress/trunk@9901 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-26 11:48:05 +00:00
ryan
b32aa16ec3 Auto set content-length. Props jacobsantos. fixes #8249
git-svn-id: http://svn.automattic.com/wordpress/trunk@9741 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-17 21:21:35 +00:00
ryan
40c754df1d Unused var fixes. Props DD32. see #8220
git-svn-id: http://svn.automattic.com/wordpress/trunk@9716 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-15 18:10:35 +00:00
ryan
16e560573f Add missing array keys. fixes #8121
git-svn-id: http://svn.automattic.com/wordpress/trunk@9575 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-08 23:13:33 +00:00
ryan
0e05d37cde Prioritize transports differently for non-blocking requests. fixes #8086
git-svn-id: http://svn.automattic.com/wordpress/trunk@9572 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-11-08 22:35:00 +00:00
westi
5224736c99 Longer default timeouts, more filters and other HTTP changes.
git-svn-id: http://svn.automattic.com/wordpress/trunk@9188 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-15 20:36:23 +00:00
ryan
97f11e8f42 Report curl errors
git-svn-id: http://svn.automattic.com/wordpress/trunk@9185 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-15 16:35:35 +00:00
ryan
c75149c03d Chunked encoding fixes from DD32. fixes #7770
git-svn-id: http://svn.automattic.com/wordpress/trunk@9091 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-10-06 23:10:22 +00:00
azaozz
71b1269695 phpDoc corrections for http.php, props jacobsantos fixes #7550
git-svn-id: http://svn.automattic.com/wordpress/trunk@8842 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-09-08 01:23:43 +00:00
azaozz
0b6768f3ea Disable fsockopen for 12 hours if it fails. Props jacobsantos, fixes #7514
git-svn-id: http://svn.automattic.com/wordpress/trunk@8654 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-16 05:38:57 +00:00
ryan
02f5232d6e Always use '&' as arg separator when building the body. fixes #7522
git-svn-id: http://svn.automattic.com/wordpress/trunk@8648 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-14 22:54:43 +00:00
ryan
1ef0029be8 Adds checking for fsockopen to check for WP_DEBUG and silently drop warnings. Adds streams_set_timeout to fsockopen to help prevent long waits. Props santosj. see #7514
git-svn-id: http://svn.automattic.com/wordpress/trunk@8644 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-13 23:37:42 +00:00
westi
94ad9a773f Fix bugs in chunked encoding handling. See #4779 props santosj.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8634 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-13 05:09:59 +00:00
westi
88f521011a HTTP API improvements. Implements chunked transfer decoding. Moves plugin update checker over to api. see #4779 props santosj.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8630 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-12 21:21:11 +00:00
ryan
35b18e5034 Trailing whitespace cleanup
git-svn-id: http://svn.automattic.com/wordpress/trunk@8600 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-09 05:36:14 +00:00
westi
5a692699b4 Ensure fsockopen HTTP requests have Content-length and Content-type headers. See #4779 props DD32.
git-svn-id: http://svn.automattic.com/wordpress/trunk@8588 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-08 16:28:07 +00:00
ryan
d352f78b94 Fix issues with fsockopen transport. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8586 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-08 00:02:11 +00:00
ryan
9549319cc4 Fixes cURL for Cron in non-blocking mode. Props santosj. fixes #7481 see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8584 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-07 22:57:16 +00:00
ryan
907ba1cfce Fix Copy and Paste bug in cURL transport based. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8583 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-07 22:56:21 +00:00
ryan
e6971c04f1 Check the headers for the transfer-encoding for chunked. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8578 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-06 21:57:25 +00:00
ryan
366bb4f70f Fix notice about body not having chunk formatting. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8560 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-05 22:22:07 +00:00
ryan
63f28d3ba0 Fix chunked decoding. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8549 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-05 17:01:49 +00:00