Cerca

Heus ací els resultats de la cerca.

1.2 How to use sockets in Python
18 Resultats, Darrera modificació:
n the requested root document of the site) - **close the socket** (end the connection) This is our ro... HTTP/1.1\r\n Host: www.site.com\r\n Connection: close\r\n \r\n </code> The ''GET'' method requires: ... meter named ''Connection:'' along with its value close, which forces the server to close the connection after the first request is served; it will simplify
1.7 Four magic letters: CRUD
18 Resultats, Darrera modificació:
**inactive for some time**, the server silently closes the connection; this means that the client is o... <code ; output> Connection=keep-alive </code> ''close'' means that the server is going to close the connection as soon as the response is fully transmitted... the server to temporarily change its habits and close the connection immediately. It will conserve the
1.5 What is XML and why do we prefer to use JSON?
5 Resultats, Darrera modificació:
ry original “parentheses” in which the line is enclosed: <? and ?> . As you can see, XML uses **plain ... y a **pair of tags**: an **opening** tag and a **closing** tag. Both tags look nearly identical, but the closing tag's name starts with /. Tags can be easily identified as they are enclosed inside **<** and** >**. This means that the el
1.3 JSON – our new friend
4 Resultats, Darrera modificació:
TLA? It's simple – it's a Three-Letter Acronym. Close your eyes, strain your mind and try to recall fi... erties), JSON offers a syntax which looks like a close relative of Python's dictionary, which is, in fa... wo ways: * inside **arrays** (which are a very close relative to Python lists); * inside **objects*... colon as a separator where the name **must be enclosed in quotes**. It's worth mentioning that braces
1.1 Python Professional Course Series: RESTful APIs
3 Resultats, Darrera modificació:
"C" course. The main idea behind BSD sockets is closely connected to Unix philosophy contained in the words everything is a file. A socket may be often tre... the target (moreover, if any of the datagrams is lost, it may remain undetected) * the datagram will
2.1 Python Professional Course Series: Lab & Assessment
2 Resultats, Darrera modificació:
tes(addr, "utf8") + \ b"\r\nConnection:close\r\n\r\n" sock.send(request) answer = sock.recv(... ode("utf8") sock.shutdown(socket.SHUT_RDWR) sock.close() print(answer[:answer.find('\r')]) </code> ==
1.6 Making life easier with the requests module
1 Resultats, Darrera modificació:
faces when it tries to establish, maintain, and close internet connections. This is why we used it bef