quoting
delimiter scheme, 83
prefix message, 83
unknown lengths, 84
repr(), 76
XML format, 87
Network exceptions
catching, 91
blanket exception handlers, 91
FatalError exceptions, 91
granular approach, 91
delivering exceptions, 90
httplib, 89
OSError, 88
socket.gaierror, 89
urllib2, 89
nlst() and dir() methods, 326
ntransfercmd(), 321
O
Object-relational mapper (ORM), 207
Office of Information Technology (OIT), 247
OPTIONS method, 155
P, Q
Passive sockets, 41
Perfect Forward Security (PFS)
create_default_context() function, 104, 106
definition, 106
ECDHE, 105
OpenSSL, 105
ssl module, 106
Platform-as-a-service (PaaS) providers, 175
POP. See Post Office Protocol (POP)
POP3_SSL object, 106
POST method, 155
Post Office Protocol (POP), 243
connecting and authenticating process, 260
dele() method, 264
e-mail reader, 264–266
list() command, 263
poplib module, 259
retr() method, 264
server compatibility, 259
top() method, 264
PUT method, 155
Python 3.4, 171
Python 3.4 default contexts
cafile option, 101
client and server, 100–101
localhost certificate, 102
OpenSSL library, 99
socket wrapping, 104
ssl.create_default_context() function, 99–100
tcpdump, 102
wrap_socket() method, 101
R
raise_for_status() method, 158
Realm, 164
Reliable transport, 17
Remote procedure call (RPC), 143
features, 332
JSON-RPC
eval() function, 339
JSON-RPC client, 340
localhost interface, 341
web server, 340
network errors, 346
Pyro and RPyC objects, 343
RPyC, 344
self-documenting data, 342
web frameworks and message, 346
XML-RPC
add() and subtract() math functions, 337
function calls, 336
listMethods(), 335
mechanism, 338
multicall function, 334
Python Standard Library, 333
quadratic(), 338
ServerProxy class, 337
web server, 333, 335
Representational State Transfer (REST)
advantages, 177
benefits, 178
concept, 176
definition, 176
HATEOAS, 178
POST, 177
resources manipulation, 177
REST API, 178
RPC, 177
self-descriptive messages, 177
Requests library, 151
RPC. See Remote procedure call (RPC)
S
scrape_with_lxml() function, 217
scrape_with_soup() function, 217
Secure Sockets Layer (SSL), 254
Sender Policy Framework (SPF), 245
sendto() function, 22
Server architecture
accept_connections_forever(), 119
ASCII question mark character, 117
■ index
353