인터넷 프로토콜과 지원¶
The modules described in this chapter implement internet protocols and support
for related technology. They are all implemented in Python. Most of these
modules require the presence of the system-dependent module socket
, which
is currently supported on most popular platforms. Here is an overview:
webbrowser
— Convenient web-browser controllerwsgiref
— WSGI Utilities and Reference Implementationurllib
— URL handling modulesurllib.request
— Extensible library for opening URLs- Request 객체
- OpenerDirector 객체
- BaseHandler 객체
- HTTPRedirectHandler 객체
- HTTPCookieProcessor 객체
- ProxyHandler 객체
- HTTPPasswordMgr 객체
- HTTPPasswordMgrWithPriorAuth 객체
- AbstractBasicAuthHandler 객체
- HTTPBasicAuthHandler 객체
- ProxyBasicAuthHandler 객체
- AbstractDigestAuthHandler 객체
- HTTPDigestAuthHandler 객체
- ProxyDigestAuthHandler 객체
- HTTPHandler 객체
- HTTPSHandler 객체
- FileHandler 객체
- DataHandler 객체
- FTPHandler 객체
- CacheFTPHandler 객체
- UnknownHandler 객체
- HTTPErrorProcessor 객체
- 예
- 레거시 인터페이스
urllib.request
제약 사항
urllib.response
— urllib가 사용하는 응답 클래스urllib.parse
— Parse URLs into componentsurllib.error
— Exception classes raised by urllib.requesturllib.robotparser
— Parser for robots.txthttp
— HTTP moduleshttp.client
— HTTP protocol clientftplib
— FTP protocol clientpoplib
— POP3 protocol clientimaplib
— IMAP4 protocol clientsmtplib
— SMTP protocol clientuuid
— UUID objects according to RFC 4122socketserver
— A framework for network servershttp.server
— HTTP servershttp.cookies
— HTTP state managementhttp.cookiejar
— Cookie handling for HTTP clientsxmlrpc
— XMLRPC server and client modulesxmlrpc.client
— XML-RPC client accessxmlrpc.server
— Basic XML-RPC serversipaddress
— IPv4/IPv6 manipulation library