php|architect's Guide to Web Scraping with PHP - Wind Business ...
php|architect's Guide to Web Scraping with PHP - Wind Business ...
php|architect's Guide to Web Scraping with PHP - Wind Business ...
Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
HTTP ” 23<br />
likely “auth”) from the comma-separated list contained in the qop (quality of<br />
protection) key pro vided by the server, and HA2 <strong>to</strong>gether separated by colons<br />
and take the MD5 hash of that string. This is the final response code.<br />
<br />
• Lastly, send everything the server originally sent in the WWW-Authenticate<br />
header, plus the response value and its constituents (except the password obviously),<br />
back <strong>to</strong> the server in the usual Authorization header.<br />
Authorization: Digest username="USERNAME",<br />
realm="testrealm@host.com",<br />
nonce="dcd98b7102dd2f0e8b11d0f600bfb0c093",<br />
uri="/wiki/Main_Page",<br />
qop="auth",<br />
nc=00000001,<br />
cnonce="0a4f113b",<br />
response="6629fae49393a05397450978507c4ef1",<br />
opaque="5ccc069c403ebaf9f0171e9517f40e41"<br />
Some third-party clients implement this, some don’t. Again, it’s not commonly used,<br />
but it’s good <strong>to</strong> be aware of ho w <strong>to</strong> derive the appropriate header value in cases where<br />
you must implement it yourself. F or more information on HTTP authentication, see<br />
RFC 2617.