25.02.2013 Views

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

TCP/IP Tutorial and Technical Overview - IBM Redbooks

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

– 413 Request Entity Too Large<br />

– 414 Request-URI Too Long<br />

– 415 Unsupported Media Type<br />

► Server error (5xx)<br />

This class of codes indicate client errors. Currently defined codes are as<br />

follows:<br />

– 500 Internal Server Error<br />

– 501 Not Implemented<br />

– 502 Bad Gateway<br />

– 503 Service Unavailable<br />

– 504 Gateway Timeout<br />

– 505 HTTP Version Not Supported<br />

Access authentication<br />

HTTP provides an authentication mechanism to allow servers to define access<br />

permissions on resources <strong>and</strong> clients to use these resources. The authentication<br />

method can be one of the following:<br />

► Basic authentication scheme<br />

Basic authentication is based on user IDs <strong>and</strong> passwords. In this<br />

authentication scheme, the server permits the connection only if the user ID<br />

<strong>and</strong> password are validated. In basic authentication, user IDs <strong>and</strong> passwords<br />

are not encrypted. They are encoded in Base64 format (see “Base64<br />

encoding” on page 584). Therefore, the use of SSL or TLS is highly<br />

recommended.<br />

► Digest authentication scheme<br />

Digest authentication scheme is an extension to HTTP <strong>and</strong> described in RFC<br />

2617. In this authentication scheme, the user ID <strong>and</strong> a digest containing a<br />

hash value of the password are sent to the server. The server computes a<br />

similar digest <strong>and</strong> grants access to the protected resources if the two digests<br />

are equal. Notice that if the digest authentication is enabled, what is sent over<br />

the network is not simply an encrypted form of the password, which could be<br />

decrypted if one had the correct key, but is a one-hash value of the password,<br />

which cannot be decrypted. So, digest authentication provides a higher level<br />

of security than the Base64 encoded password. Unfortunately, digest<br />

authentication is not yet supported by all browsers.<br />

Chapter 16. The Web 613

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!