21. Protocolos de Internet e Suporte
************************************

Os módulos descritos neste capítulo implementam protocolos de Internet
e suporte para tecnologias relacionadas. Todos eles estão
implementados em Python. A maioria destes módulos requer a presença do
módulo dependente do sistema "socket", que é suportado atualmente na
maioria das plataformas populares. Aqui temos uma visão geral:

* 21.1. "webbrowser" --- Convenient Web-browser controller

  * 21.1.1. Browser Controller Objects

* 21.2. "cgi" --- Suporte a Common Gateway Interface

  * 21.2.1. Introdução

  * 21.2.2. Usando o módulo cgi

  * 21.2.3. Interface de nível mais alto

  * 21.2.4. Funções

  * 21.2.5. Caring about security

  * 21.2.6. Installing your CGI script on a Unix system

  * 21.2.7. Testing your CGI script

  * 21.2.8. Debugging CGI scripts

  * 21.2.9. Common problems and solutions

* 21.3. "cgitb" --- Gerenciador de traceback (situação da pilha de
  execução) para roteiros de CGI

* 21.4. "wsgiref" --- WSGI Utilities and Reference Implementation

  * 21.4.1. "wsgiref.util" -- WSGI environment utilities

  * 21.4.2. "wsgiref.headers" -- WSGI response header tools

  * 21.4.3. "wsgiref.simple_server" -- a simple WSGI HTTP server

  * 21.4.4. "wsgiref.validate" --- WSGI conformance checker

  * 21.4.5. "wsgiref.handlers" -- server/gateway base classes

  * 21.4.6. Exemplos

* 21.5. "urllib" --- Módulos de manipulação de URL

* 21.6. "urllib.request" --- Biblioteca extensível para abrir URLs

  * 21.6.1. Objeto Request

  * 21.6.2. OpenerDirector Objects

  * 21.6.3. BaseHandler Objects

  * 21.6.4. HTTPRedirectHandler Objects

  * 21.6.5. HTTPCookieProcessor Objects

  * 21.6.6. ProxyHandler Objects

  * 21.6.7. HTTPPasswordMgr Objects

  * 21.6.8. HTTPPasswordMgrWithPriorAuth Objects

  * 21.6.9. AbstractBasicAuthHandler Objects

  * 21.6.10. HTTPBasicAuthHandler Objects

  * 21.6.11. ProxyBasicAuthHandler Objects

  * 21.6.12. AbstractDigestAuthHandler Objects

  * 21.6.13. HTTPDigestAuthHandler Objects

  * 21.6.14. ProxyDigestAuthHandler Objects

  * 21.6.15. HTTPHandler Objects

  * 21.6.16. Objetos HTTPSHandler

  * 21.6.17. FileHandler Objects

  * 21.6.18. DataHandler Objects

  * 21.6.19. FTPHandler Objects

  * 21.6.20. CacheFTPHandler Objects

  * 21.6.21. Objetos UnknownHandler

  * 21.6.22. HTTPErrorProcessor Objects

  * 21.6.23. Exemplos

  * 21.6.24. Legacy interface

  * 21.6.25. "urllib.request" Restrictions

* 21.7. "urllib.response" --- Response classes used by urllib

* 21.8. "urllib.parse" --- Analisa URLs para componentes

  * 21.8.1. Análise de URL

  * 21.8.2. Analisando bytes codificados em ASCII

  * 21.8.3. Structured Parse Results

  * 21.8.4. URL Quoting

* 21.9. "urllib.error" --- Classes de exceção levantadas por
  urllib.request

* 21.10. "urllib.robotparser" ---  Parser for robots.txt

* 21.11. "http" --- módulos HTTP

  * 21.11.1. códigos de status HTTP

* 21.12. "http.client" --- cliente de protocolo HTTP

  * 21.12.1. Objetos de HTTPConnection

  * 21.12.2. Objetos HTTPResponse

  * 21.12.3. Exemplos

  * 21.12.4. HTTPMessage Objects

* 21.13. "ftplib" --- FTP protocol client

  * 21.13.1. FTP Objects

  * 21.13.2. Objetos FTP_TLS

* 21.14. "poplib" --- POP3 protocol client

  * 21.14.1. Objetos POP3

  * 21.14.2. Exemplo POP3

* 21.15. "imaplib" --- IMAP4 protocol client

  * 21.15.1. Objetos IMAP4

  * 21.15.2. Exemplo IMAP4

* 21.16. "nntplib" --- NNTP protocol client

  * 21.16.1. NNTP Objects

    * 21.16.1.1. Attributes

    * 21.16.1.2. Métodos

  * 21.16.2. Funções utilitárias

* 21.17. "smtplib" --- SMTP protocol client

  * 21.17.1. SMTP Objects

  * 21.17.2. Exemplo SMTP

* 21.18. "smtpd" --- Serviços SMTP

  * 21.18.1. Objetos SMTPServer

  * 21.18.2. DebuggingServer Objects

  * 21.18.3. Objetos PureProxy

  * 21.18.4. MailmanProxy Objects

  * 21.18.5. SMTPChannel Objects

* 21.19. "telnetlib" --- cliente Telnet

  * 21.19.1. Objetos Telnet

  * 21.19.2. Telnet Example

* 21.20. "uuid" --- UUID objects according to **RFC 4122**

  * 21.20.1. Exemplo

* 21.21. "socketserver" --- A framework for network servers

  * 21.21.1. Server Creation Notes

  * 21.21.2. Objetos Server

  * 21.21.3. Request Handler Objects

  * 21.21.4. Exemplos

    * 21.21.4.1. "socketserver.TCPServer" Example

    * 21.21.4.2. Exemplo "socketserver.UDPServer"

    * 21.21.4.3. Asynchronous Mixins

* 21.22. "http.server" --- servidores HTTP

* 21.23. "http.cookies" --- Gerenciadores de estado HTTP

  * 21.23.1. Objetos Cookie

  * 21.23.2. Objetos Morsel

  * 21.23.3. Exemplo

* 21.24. "http.cookiejar" --- Cookie handling for HTTP clients

  * 21.24.1. CookieJar and FileCookieJar Objects

  * 21.24.2. FileCookieJar subclasses and co-operation with web
    browsers

  * 21.24.3. Objeto CookiePolicy

  * 21.24.4. DefaultCookiePolicy Objects

  * 21.24.5. Objetos Cookie

  * 21.24.6. Exemplos

* 21.25. "xmlrpc" --- Módulos de servidor e cliente XMLRPC

* 21.26. "xmlrpc.client" --- XML-RPC client access

  * 21.26.1. Objetos ServerProxy

  * 21.26.2. Objetos DateTime

  * 21.26.3. Objetos Binários

  * 21.26.4. Objetos Fault

  * 21.26.5. Objeto ProtocolError

  * 21.26.6. Objetos MultiCall

  * 21.26.7. Convenience Functions

  * 21.26.8. Exemplo de uso do cliente

  * 21.26.9. Example of Client and Server Usage

* 21.27. "xmlrpc.server" --- Servidores XML-RPC básicos

  * 21.27.1. Objetos de SimpleXMLRPCServer

    * 21.27.1.1. Exemplo de SimpleXMLRPCServer

  * 21.27.2. CGIXMLRPCRequestHandler

  * 21.27.3. Documentando servidor XMLRPC

  * 21.27.4. Objetos de DocXMLRPCServer

  * 21.27.5. DocCGIXMLRPCRequestHandler

* 21.28. "ipaddress" --- IPv4/IPv6 manipulation library

  * 21.28.1. Convenience factory functions

  * 21.28.2. IP Addresses

    * 21.28.2.1. Endereço de objetos

    * 21.28.2.2. Conversion to Strings and Integers

    * 21.28.2.3. Operadores

      * 21.28.2.3.1. Comparison operators

      * 21.28.2.3.2. Operadores aritméticos

  * 21.28.3. IP Network definitions

    * 21.28.3.1. Prefix, net mask and host mask

    * 21.28.3.2. Objetos Network

    * 21.28.3.3. Operadores

      * 21.28.3.3.1. Logical operators

      * 21.28.3.3.2. Iteração

      * 21.28.3.3.3. Redes como contêineres de endereços

  * 21.28.4. Interface objects

    * 21.28.4.1. Operadores

      * 21.28.4.1.1. Logical operators

  * 21.28.5. Other Module Level Functions

  * 21.28.6. Custom Exceptions
