Foundations of Python Network Programming

(WallPaper) #1

Domain Name Service (DNS), 247
Domain Name System (DNS)
definition, 67
getaddrinfo() function, 67
multicast DNS, 68
OS benefits, 69
POSIX system, 68
query making, 69
resolving mail domains, 71
server IP addresses, 67
TLDs, 68
UDP packet, 69
do_POST() methods, 169


„„„„„„„„„E

Elliptic curve Diffie–Hellman
exchange (ECDHE), 105
E-mail message
add content, 232
aztec machine, 224
building, 225
europa machine, 225
facts, 223
header encodings, 237
headers, 225
HTML and multimedia
add_alternative(), 228
add_attachment(), 228
add_related(), 227
boundary string, 227
build_mime_email.py, 229
email.message.MIMEPart, 227
MIME-Powered E-Mail, 228
MIME-Version header, 230
multipart/alternative content, 230
set_content(), 227
iter_attachments() method, 234
MIME parts
Content-Disposition header, 236
get_content_maintype(), 235
get_content() method, 236
get_content_subtype(), 235
get_content_type(), 235
get_payload() method, 237
is_multipart() method, 235
iter_parts() method, 235
multipart method, 236
walk() method, 236
parsing
binary mode, 234
body and attachments, 233
get_body() method, 234
HTML version, 235
KeyError, 234


message displays, 234
multipart/related, 234
preferencelist, 234
parsing dates, 239
received mail, 224
SMTP connection, 225
Extensible Markup Language (XML), 188

„„„„„„„„„F

FETCH command, 275
fileno() method, 20
File Transfer Protocol (FTP)
advanced binary downloading, 321
advanced binary uploading, 324
ASCII file, 320
binary file, 321
communication channels, 318
creation and deletion of directories, 329
cwd(), 328
disadvantages, 317
FTP_TLS class, 330
handling errors, 325
Python module, 319
scanning directories, 326
uploading data, 323
find_all() method, 217
flash() function, 202
Flask render_template() function, 203
FTP. See File Transfer Protocol (FTP)
FTP_TLS object, 107

„„„„„„„„„G

get_flashed_messages() function, 202
GET() function, 220
GET method, 155
getpeercert() method, 107
getpeername() method, 45
getsockname() method, 22, 45
get_text() method, 217
Google Maps, 6
Green Unicorn/gunicorn server, 173–174

„„„„„„„„„H

Hashing and sharding, 140
HEAD method, 155
Heroku, 176
HTTP clients
authentication
Basic Authentication, 164
definition, 163
Digest access authentication, 164
RFC 7235, 164

■ index


350

Free download pdf