Lines Matching full:content
25 response, content = http.request(
28 assert response["content-location"] == DUMMY_URL
29 assert content == b"the body"
38 response, content = http.request(
55 response, content = http.request("http://no-such-hostname./")
56 assert response["content-type"] == "text/plain"
57 assert content.startswith(b"Unable to find")
85 response, content = http.request(DUMMY_URL)
86 content = content.lower()
87 assert response["content-type"] == "text/plain"
89 b"connection refused" in content
90 or b"actively refused" in content
91 or b"socket is not connected" in content
100 response, content = http.request(uri + query, "GET")
102 reflected = tests.HttpRequest.from_bytes(content)
110 response, content = http.request(uri)
112 reflected = tests.HttpRequest.from_bytes(content)
122 response, content = http.request(uri, method, body=b" ")
124 reflected = tests.HttpRequest.from_bytes(content)
134 response, content = http.request(uri, "HEAD")
136 assert content == b""
143 response, content = http.request(uri, "GET")
152 response, content = http.request(uri, "GET")
154 reflected = tests.HttpRequest.from_bytes(content)
162 response, content = http.request(uri, "GET", headers={"User-Agent": "fred/1.0"})
164 reflected = tests.HttpRequest.from_bytes(content)
179 response, content = http.request(uri, "GET")
181 assert content == final_content
187 response, content = http.request(uri, "GET")
189 assert content == final_content
204 response, content = http.request(uri, "GET")
215 response, content = http.request(uri, "GET")
218 assert content == b"redirect body"
239 assert "content-location" in response2
240 assert response1["content-location"] == destination
246 assert response2["content-location"] == destination
271 response, content = http.request(uri, "HEAD")
273 assert response["content-location"] == destination
323 assert response1["content-location"] == final_url
331 assert response2["content-location"] == final_url
335 assert response2.previous["content-location"] == second_url
370 response, content = http.request(uri, "GET", redirections=1)
375 assert content == b"second redirect"
395 response, content = http.request(uri, "GET")
400 assert content == b""
419 response, content = http.request(uri, "POST", " ")
421 reflected = tests.HttpRequest.from_bytes(content)
429 response, content = http.request(uri, "POST", " ")
437 response, content = http.request(uri, method, body=b"q q")
439 reflected = tests.HttpRequest.from_bytes(content)
480 response, content = http.request(
486 response, content = http.request(
498 response, content = http.request(
504 response, content = http.request(
509 reflected = tests.HttpRequest.from_bytes(content)
513 response, content = http.request(
519 reflected = tests.HttpRequest.from_bytes(content)
532 response, content = http.request(
538 reflected = tests.HttpRequest.from_bytes(content)
542 response, content = http.request(
552 reflected = tests.HttpRequest.from_bytes(content)
561 # response, content = http.request(uri, 'GET')
566 # response, content = http.request(uri, 'GET', headers = {'Cache-Control': 'max-age=0'})
591 response, content = http.request(uri, "GET")
594 response, content = http.request(uri, "GET")
607 body=b"final content\n",
612 response, content = http.request(uri, "GET")
617 assert content == b"final content\n"
619 response, content = http.request(uri, "GET")
624 assert content == b"final content\n"
631 response, content = http.request(uri, "GET")
640 Content-Length: 7\r\n\
642 content"""
644 response, content = http.request(uri, "GET")
646 assert content == b"content"