Commit Graph

127 Commits

Author SHA1 Message Date
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
ryan
30b6066f07 Streams transport fixes from jacobsantos. fixes #7456 see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8548 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-05 16:33:20 +00:00
ryan
80937742da Suppress fopen errors if WP_DEBUG is not enabled. Props jacobsantos. fixes #7456 see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8545 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-05 05:45:34 +00:00
ryan
0c0de881bb Fix reversed encoding. Props DD32. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8544 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-05 04:14:55 +00:00
ryan
92589dee21 Tests for whether is an array or an object before running http_build_query() on . Props santosj. fixes #7460 see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8536 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-04 19:12:26 +00:00
ryan
e4a40aa709 Return response in foreach loop and remove debugging line. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8535 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-04 18:45:44 +00:00
ryan
2eb0dffaaa Don't call curl_setopt() if safe_mode is enabled. Props ionfish and Po0ky. fixes #7458 see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8534 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-04 17:03:05 +00:00
ryan
2d6e153cb4 Cycle through available transports trying each one. Props jacobsantos. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8533 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-04 16:28:12 +00:00
ryan
f152ed51e1 Timeout in WP_Http_Streams::request causes Fatal error abort. Props wet. fixes #7465 see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8528 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-03 21:01:28 +00:00
ryan
7c80ab99e2 Fixes process headers for fopen header return, fixes HTTP extension response array. Also adds Curl implementation and allows for it to be used when using headers. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8524 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-01 23:13:48 +00:00
ryan
696fce2d5b Fixes process headers for fopen header return, fixes HTTP extension response array. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8523 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-01 22:31:57 +00:00
ryan
5fb61f3398 Various http fixes from santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8522 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-01 21:24:03 +00:00
ryan
2f4537ad4c Initial cURL support. Doc and non-blocking mode fixes. Props santosj. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8520 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-01 18:44:40 +00:00
ryan
6425f7db9d Formatting changes and non-blocking mode. Props DD32. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8519 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-01 16:36:50 +00:00
ryan
6f3542eff2 Formatting and phpdoc cleanups from DD32. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8518 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-01 05:45:13 +00:00
ryan
3c99cfc4f5 HTTP POST and REQUEST API from jacobsantos. see #4779
git-svn-id: http://svn.automattic.com/wordpress/trunk@8516 1a063a9b-81f0-0310-95a4-ce76da25c4cd
2008-08-01 05:00:07 +00:00