<< Chapter < Page Chapter >> Page >

Go to answer 11

Figure index

What is the meaning of the following two images?

These images were inserted here simply to insert some space between the questions and the answers to keep them from being visible on the screen at thesame time.

Spacer image of a rabbit and a penguin.

This image was also inserted for the purpose of inserting space between the questions and the answers.

Spacer image of a penguin and some houses.

Answers

Answer 11

True.

Go back to Question 11

Answer 10

True.

Go back to Question 10

Answer 9

True. This is also the code that produced the output with the format shown in the bottom panel of Figure 2 .

Go back to Question 9

Answer 8

False. Assuming that the connection to the file named index.html at " www.dickbaldwin.com " is successful, the code in the top panel of Figure 2 produces the output shown in the bottom panel of Figure 3 with minor variations that change from one run to the next. Note that the data values are the same as in the bottom panel of Figure 2 but the format is different.

Figure 3 . Answer 8.
Status: 200 Reason: OK [('Server', 'Apache/2.2'), ('Content-Type', 'text/html; charset=iso-8859-1'), ('Date', 'Sat, 08 Nov 2014 22:08:37 GMT'), ('Content-Language', 'en-US'), ('Accept -Ranges', 'bytes'), ('Connection', 'Keep-Alive'), ('Set-Cookie', 'X-Mapping-bffmijpk=2C686CCC2A6865C34A535895FE033586; path=/'), ('Content-Length', '3285')]

Go back to Question 8

Answer 7

True. See The Python Standard Library - 21.12. http.client - HTTP protocol client .

Go back to Question 7

Answer 6

False. If the port is empty or not given, port 80 (not port 8080) is assumed. See section 3.2.2 of w3.org - 3 Protocol Parameters .

Go back to Question 6

Answer 5

True.

Go back to Question 5

Answer 4

True. HTTP is a connectionless and as a result, HTTP is a stateless protocol. The server and client are aware of each other only during a current request.Afterwards, both of them forget about each other insofar as the protocol is concerned. Note however that browsers use various methods, such as cookies, tostore information about previous connections but that capability is not built into the HTTP protocol.

Go back to Question 4

Answer 3

True. Any type of data can be sent by HTTP as long as both the client and server know how to handle the data content.

Go back to Question 3

Answer 2

False. The HTTP client (typically a browser) initiates an HTTP request. After a request is made, the client disconnects from the server and waits for aresponse. The server processes the request and re-establish the connection withthe client to send response back.

Go back to Question 2

Answer 1

True. See tutorialspoint -- HTTP -- Quick Guide .

Go back to Question 1

Miscellaneous

This section contains a variety of miscellaneous information.

Housekeeping material
  • Module name: Itse1359-1910-Networking with HTTP
  • File: Itse1359-1910.htm
  • Published: 11/10/14
  • Revised: 03/04/15
Disclaimers:

Financial : Although the Connexions site makes it possible for you to download aPDF file for this module at no charge, and also makes it possible for you to purchase a pre-printed version of the PDF file, youshould be aware that some of the HTML elements in this module may not translate well into PDF.

I also want you to know that, I receive no financial compensation from the Connexions website even if you purchase the PDF version ofthe module.

In the past, unknown individuals have copied my modules from cnx.org, converted them to Kindle books, and placed them for sale onAmazon.com showing me as the author. I neither receive compensation for those sales nor do I know who does receive compensation. If youpurchase such a book, please be aware that it is a copy of a module that is freely available on cnx.org and that it was made andpublished without my prior knowledge.

Affiliation : I am a professor of Computer Information Technology at Austin Community College in Austin, TX.

-end-

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Itse 1359 introduction to scripting languages: python. OpenStax CNX. Jan 22, 2016 Download for free at https://legacy.cnx.org/content/col11713/1.32
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Itse 1359 introduction to scripting languages: python' conversation and receive update notifications?

Ask