xp-framework / http

HTTP protocol support for the XP Framework
2 stars 2 forks source link

Implement RFC 2617 - HTTP digest authentication #8

Closed kiesel closed 9 years ago

thekid commented 9 years ago

Here's the example from the HttpConnection's class apidoc:

$c= new HttpConnection('http://xp-framework.net/');
$response= $c->get(
  array('a' => 'b'),
  array(
    new Header('X-Binford', '6100 (more power)'),
    new BasicAuthorization('baz', 'bar'),
    'Cookie' => 'username=fred; lastvisit=2004-01-10'
  )
);
Console::writeLine('Headers: ', $response);
while ($chunk= $response->readData()) {
  // ...
}

This wouldn't work anymore AFAIS. Can we restore BC here?

thekid commented 9 years ago

:+1:

kiesel commented 9 years ago

Superseded by PR #9