Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Extend Request.php to include Http Proxy support #601

Closed
wants to merge 1 commit into from

3 participants

@ericcholis

Extended Request.php to allow for configurable Http Proxy support when using 'context' format. See http://www.php.net/manual/en/function.stream-context-create.php#92586

@ericcholis ericcholis Extend Request.php to include Http Proxy support
Extended Request.php to allow for configurable Http Proxy support when using 'context' format. See http://www.php.net/manual/en/function.stream-context-create.php#92586
48aa928
@gwoo
Owner

I CAN HAZ TEST?

@ericcholis

I'm a little green at writing tests. I'm assuming I should modify RequestTest->testToArray() and RequestTest->testToContext(). Should I also add a Proxy specific test, like RequestTest->testProxySetup()?

@nateabele
Owner

@ericcholis Modifying/extending the existing tests should probably be enough.

@nateabele
Owner

Test results for patch as-is (stack traces trimmed for brevity):

nate@lappy3 ~/P/f/l/lithium /ericcholis> li3 test tests/cases
----
Test
----

[...]
............................................................
...........................................................E
............EE...E...E....E....E...................E...E...E
...E......E....E.....................EE...EE....EE....EE....
............................................................
............................................................
.....E.E.E.E.E.E.E.E.E...E.E................................
............................................................
............................................................
............................................................
...........................................................E
.E.E.E.E.......E......E......EE..EE..EE..EE....E.EE.E..E....
............................................................
............................................................
............................................................
............................................................
............................................................
............................................................
............................................................
............................................................
............................................................
...................................S........................
............................................................
............................................................
............................................................
............................................................
...EE.EE.EE.EE.EE.EE.EE.EE.EE.EE.EE.EE.EE.EE................
............................................................
E..E...E...E....E...E.E....E...E............................
............................................................
............................................................

[...]

FAIL

4989 / 4989 passes
0 fails and 89 exceptions

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\tests\cases\net\SocketTest::testSend(), line 27
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Context::open(), line 60
lithium\tests\cases\net\socket\ContextTest::testMessageInConfig(), line 72
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Context::open(), line 61
lithium\tests\cases\net\socket\ContextTest::testMessageInConfig(), line 72
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Context::write(), line 124
lithium\tests\cases\net\socket\ContextTest::testWriteAndRead(), line 79
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Context::write(), line 124
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\ContextTest::testSendWithNull(), line 89
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Context::write(), line 124
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\ContextTest::testSendWithArray(), line 100
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Context::write(), line 124
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\ContextTest::testSendWithObject(), line 112
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Curl::write(), line 144
lithium\tests\cases\net\socket\CurlTest::testWriteAndRead(), line 100
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Curl::write(), line 144
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\CurlTest::testSendWithNull(), line 110
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Curl::write(), line 144
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\CurlTest::testSendWithArray(), line 120
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Curl::write(), line 144
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\CurlTest::testSendWithObject(), line 131
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Curl::write(), line 144
lithium\tests\cases\net\socket\CurlTest::testSendPostThenGet(), line 160
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\socket\Curl::write(), line 144
lithium\tests\cases\net\socket\CurlTest::testSendPostThenGet(), line 165
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\tests\cases\net\socket\StreamTest::testWriteAndRead(), line 90
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\tests\cases\net\socket\StreamTest::testWriteAndRead(), line 90
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\StreamTest::testSendWithNull(), line 101
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\StreamTest::testSendWithNull(), line 101
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\StreamTest::testSendWithArray(), line 112
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\StreamTest::testSendWithArray(), line 112
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\StreamTest::testSendWithObject(), line 124
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\net\socket\Stream::write(), line 118
lithium\net\Socket::send(), line 145
lithium\tests\cases\net\socket\StreamTest::testSendWithObject(), line 124
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\net\http\RequestTest::testToString(), line 127
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testToString(), line 130
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\net\http\RequestTest::testToStringWithAuth(), line 148
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testToContextWithAuth(), line 171
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\net\http\RequestTest::testToStringWithBody(), line 184
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testToArray(), line 209
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testToUrl(), line 215
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testToUrl(), line 220
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testToContext(), line 237
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testDigest(), line 274
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\RequestTest::testParseUrlToConfig(), line 289
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\tests\cases\net\http\ServiceTest::testRequestPath(), line 40
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\tests\cases\net\http\ServiceTest::testRequestPath(), line 47
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\tests\cases\net\http\ServiceTest::testRequestPath(), line 54
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\tests\cases\net\http\ServiceTest::testRequestPath(), line 61
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::head(), line 115
lithium\tests\cases\net\http\ServiceTest::testHead(), line 70
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\tests\cases\net\http\ServiceTest::testGet(), line 81
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\tests\cases\net\http\ServiceTest::testGetPath(), line 91
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::post(), line 139
lithium\tests\cases\net\http\ServiceTest::testPost(), line 101
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\net\http\ServiceTest::testPost(), line 111
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::put(), line 151
lithium\tests\cases\net\http\ServiceTest::testPut(), line 129
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\net\http\ServiceTest::testPut(), line 139
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::delete(), line 163
lithium\tests\cases\net\http\ServiceTest::testDelete(), line 157
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\net\http\ServiceTest::testDelete(), line 165
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::post(), line 139
lithium\tests\cases\net\http\ServiceTest::testJsonPost(), line 181
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\net\http\ServiceTest::testJsonPost(), line 191
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\tests\cases\net\http\ServiceTest::testSendConfiguringConnection(), line 219
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\core\Object::invokeMethod(), line 169
lithium\net\http\Service::__call(), line 105
lithium\net\http\Service::patch(), line 226
lithium\tests\cases\net\http\ServiceTest::testMagicMethod(), line 226
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\cases\net\http\ServiceTest::testMagicMethod(), line 228
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
explode, line ??
lithium\net\http\Response::_parseMessage(), line 192
lithium\net\http\Response::_init(), line 104
lithium\core\Object::__construct(), line 93
lithium\net\Message::__construct(), line 98
lithium\net\http\Message::__construct(), line 83
lithium\net\http\Response::__construct(), line 92
lithium\core\Libraries::instance()::{closure} @ 658, line 678
lithium\core\Libraries::instance(), line 681
lithium\core\Object::_instance(), line 213
lithium\net\Socket::send(), line 147
lithium\net\http\Service::send(), line 185
lithium\core\Object::invokeMethod(), line 173
lithium\net\http\Service::__call(), line 105
lithium\net\http\Service::patch(), line 235
lithium\tests\cases\net\http\ServiceTest::testMagicMethod(), line 235
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\net\http\MockSocket::read(), line 37
lithium\net\Socket::send(), line 146
lithium\net\http\Service::send(), line 191
lithium\net\http\Service::get(), line 127
lithium\tests\cases\net\http\ServiceTest::testDigestAuth(), line 244
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::post(), line 139
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::create()::{closure} @ 209, line 210
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::create(), line 211
lithium\tests\cases\data\source\HttpTest::testCreate(), line 82
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testCreate(), line 91
lithium\test\Unit::lithium\test\{closure}() @ ?, line 730
lithium\core\Object::_filter(), line 238
lithium\test\Unit::_runTestMethod(), line 734
lithium\test\Unit::run(), line 180
lithium\util\Collection::invoke(), line 203
lithium\util\Collection::__call(), line 217
lithium\util\Collection::run(), line 146
lithium\test\Report::run(), line 146
lithium\test\Dispatcher::run()::{closure} @ 65, line 69
lithium\core\StaticObject::_filter(), line 119
lithium\test\Dispatcher::run(), line 73
lithium\console\command\Test::run()::{closure} @ 234, line 236
lithium\console\command\Test::lithium\console\command\{closure}() @ ?, line 145
lithium\console\command\Test::run(), line 238
lithium\core\Object::invokeMethod(), line 167
lithium\console\Command::__invoke(), line 136
lithium\console\Dispatcher::lithium\console\{closure}() @ ?, line 195
lithium\core\StaticObject::_filter(), line 119
lithium\console\Dispatcher::_call(), line 198
lithium\core\StaticObject::invokeMethod(), line 75
lithium\console\Dispatcher::run()::{closure} @ 94, line 104
lithium\core\StaticObject::_filter(), line 119
lithium\console\Dispatcher::run(), line 108
/Users/nate/Projects/framework/libraries/lithium/console/lithium.php::{closure} @ 68, line 69
[main], line 104
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::read()::{closure} @ 225, line 226
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::read(), line 227
lithium\tests\cases\data\source\HttpTest::testRead(), line 97
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testRead(), line 105
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::put(), line 151
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::update()::{closure} @ 241, line 242
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::update(), line 243
lithium\tests\cases\data\source\HttpTest::testUpdate(), line 111
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testUpdate(), line 120
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::delete(), line 163
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::delete()::{closure} @ 257, line 258
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::delete(), line 259
lithium\tests\cases\data\source\HttpTest::testDelete(), line 126
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testDelete(), line 134
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::post(), line 139
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::create()::{closure} @ 209, line 210
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::create(), line 211
lithium\tests\cases\data\source\HttpTest::testCreateWithModel(), line 143
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testCreateWithModel(), line 154
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::read()::{closure} @ 225, line 226
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::read(), line 227
lithium\tests\cases\data\source\HttpTest::testReadWithModel(), line 162
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testReadWithModel(), line 170
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::read()::{closure} @ 225, line 226
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::read(), line 227
lithium\tests\cases\data\source\HttpTest::testReadWithModelConditions(), line 181
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testReadWithModelConditions(), line 189
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::put(), line 151
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::update()::{closure} @ 241, line 242
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::update(), line 243
lithium\tests\cases\data\source\HttpTest::testUpdateWithModel(), line 200
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testUpdateWithModel(), line 210
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::delete(), line 163
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::delete()::{closure} @ 257, line 258
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::delete(), line 259
lithium\tests\cases\data\source\HttpTest::testDeleteWithModel(), line 218
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testDeleteWithModel(), line 226
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::something(), line 233
lithium\tests\cases\data\source\HttpTest::testCustomActionWithoutMethod(), line 233
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testCustomActionWithoutMethod(), line 241
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::something(), line 251
lithium\tests\cases\data\source\HttpTest::testCustomGetMethod(), line 251
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testCustomGetMethod(), line 259
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::something(), line 270
lithium\tests\cases\data\source\HttpTest::testCustomGetMethodWithModel(), line 270
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testCustomGetMethodWithModel(), line 278
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::post(), line 139
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::do(), line 288
lithium\tests\cases\data\source\HttpTest::testCustomPostMethod(), line 288
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testCustomPostMethod(), line 298
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::post(), line 139
lithium\data\source\Http::__call()::{closure} @ 131, line 148
lithium\core\Object::_filter(), line 238
lithium\data\source\Http::__call(), line 150
lithium\data\source\Http::do(), line 309
lithium\tests\cases\data\source\HttpTest::testCustomPostMethodWithModel(), line 309
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\net\http\Request::__toString(), line 277
lithium\tests\cases\data\source\HttpTest::testCustomPostMethodWithModel(), line 319
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\http\adapter\CouchDb::__call(), line 114
lithium\data\source\http\adapter\CouchDb::get(), line 138
lithium\data\source\http\adapter\CouchDb::describe(), line 138
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testDescribe(), line 87
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::post(), line 139
lithium\data\source\http\adapter\CouchDb::create()::{closure} @ 186, line 196
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::create(), line 205
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testCreateNoId(), line 104
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::put(), line 151
lithium\data\source\http\adapter\CouchDb::update()::{closure} @ 266, line 279
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::update(), line 291
lithium\data\source\http\adapter\CouchDb::create()::{closure} @ 186, line 194
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::create(), line 205
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testCreateWithId(), line 120
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\http\adapter\CouchDb::read()::{closure} @ 223, line 236
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::read(), line 250
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testReadNoConditions(), line 135
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\http\adapter\CouchDb::read()::{closure} @ 223, line 236
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::read(), line 250
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testReadWithConditions(), line 152
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\http\adapter\CouchDb::read()::{closure} @ 223, line 236
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::read(), line 250
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testReadWithConditions(), line 164
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::get(), line 127
lithium\data\source\http\adapter\CouchDb::read()::{closure} @ 223, line 236
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::read(), line 250
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testReadWithViewConditions(), line 174
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::put(), line 151
lithium\data\source\http\adapter\CouchDb::update()::{closure} @ 266, line 279
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::update(), line 291
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testUpdate(), line 194
[...]
 ________

Exception thrown.
 File    : /Users/nate/Projects/framework/libraries/lithium/net/http/Request.php
 Class   : lithium\net\http\Request
 Method  : to()
 Line    : 215
 ________
Undefined property: lithium\net\http\Request::$proxy
 ________
lithium\tests\mocks\data\source\http\adapter\MockSocket::write(), line 40
lithium\net\Socket::send(), line 145
lithium\net\http\Service::send(), line 185
lithium\net\http\Service::delete(), line 163
lithium\data\source\http\adapter\CouchDb::delete()::{closure} @ 307, line 316
lithium\core\Object::_filter(), line 238
lithium\data\source\http\adapter\CouchDb::delete(), line 318
lithium\tests\cases\data\source\http\adapter\CouchDbTest::testDelete(), line 210
[...]
 ________

Pulling this into a branch to fix locally.

@nateabele
Owner

Okay, for whatever reason these changes didn't actually seem to be functional as provided.

@ericcholis I pushed this patch, along with some cleanup to the Request class (both related and unrelated to the changes you made), along with some updates to the test case to the ericcholis branch. Given the above, I was kinda taking a shot in the dark as far as the intended effect of the changes.

Please review the changes in the branch, specifically http://github.com/UnionOfRAD/lithium/blob/1c973fc45d0e44812180ecaaa6dc408fb82e8f46/tests/cases/net/http/RequestTest.php#L215, and verify that the tests look like they're supposed to.

Once you verify the changes are correct, we'll merge this into dev. Thanks!

@ericcholis

Reviewed the changes made to \net\http\Request in the ericcholis branch using Fiddler as a proxy. Works as expected.

@nateabele
Owner

Awesome, thank you sir.

@nateabele
Owner

Merged d42184c to dev.

@nateabele nateabele closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jul 30, 2012
  1. @ericcholis

    Extend Request.php to include Http Proxy support

    ericcholis authored
    Extended Request.php to allow for configurable Http Proxy support when using 'context' format. See http://www.php.net/manual/en/function.stream-context-create.php#92586
This page is out of date. Refresh to see the latest.
Showing with 5 additions and 2 deletions.
  1. +5 −2 net/http/Request.php
View
7 net/http/Request.php
@@ -76,7 +76,8 @@ public function __construct(array $config = array()) {
'headers' => array(),
'body' => null,
'auth' => null,
- 'method' => 'GET'
+ 'method' => 'GET',
+ 'proxy' => null
);
$config += $defaults;
parent::__construct($config);
@@ -211,12 +212,14 @@ public function to($format, array $options = array()) {
'username' => $this->username,
'password' => $this->password,
'headers' => array(),
+ 'proxy' => $this->proxy,
'body' => null,
'version' => $this->version,
'ignore_errors' => isset($this->_config['ignore_errors'])
? $this->_config['ignore_errors'] : true,
'follow_location' => isset($this->_config['follow_location'])
- ? $this->_config['follow_location'] : true
+ ? $this->_config['follow_location'] : true,
+ 'request_fulluri' => isset($this->proxy)
);
$options += $defaults;
Something went wrong with that request. Please try again.