TAILIEUCHUNG - Dive Into Python-Chapter 11. HTTP Web Services

Tham khảo tài liệu 'dive into python-chapter 11. http web services', công nghệ thông tin, kỹ thuật lập trình phục vụ nhu cầu học tập, nghiên cứu và làm việc hiệu quả | Chapter 11. HTTP Web Services . Diving in You ve learned about HTML processing and XML processing and along the way you saw how to download a web page and how to parse XML from a URL but let s dive into the more general topic of HTTP web services. Simply stated HTTP web services are programmatic ways of sending and receiving data from remote servers using the operations of HTTP directly. If you want to get data from the server use a straight HTTP GET if you want to send new data to the server use HTTP POST. Some more advanced HTTP web service APIs also define ways of modifying existing data and deleting data using HTTP PUT and HTTP DELETE. In other words the verbs built into the HTTP protocol GET POST PUT and DELETE map directly to application-level operations for receiving sending modifying and deleting data. The main advantage of this approach is simplicity and its simplicity has proven popular with a lot of different sites. Data -- usually XML data -- can be built and stored statically or generated dynamically by a server-side script and all major languages include an HTTP library for downloading it. Debugging is also easier because you can load up the web service in any web browser and see the raw data. Modern browsers will even nicely format and pretty-print XML data for you to allow you to quickly navigate through it. Examples of pure XML-over-HTTP web services Amazon API allows you to retrieve product information from the online store. National Weather Service United States and Hong Kong Observatory Hong Kong offer weather alerts as a web service. Atom API for managing web-based content. Syndicated feeds from weblogs and news sites bring you up-to-the-minute news from a variety of sites. In later chapters you ll explore APIs which use HTTP as a transport for sending and receiving data but don t map application semantics to the underlying HTTP semantics. They tunnel everything over HTTP POST. But this chapter will concentrate on using HTTP GET

TỪ KHÓA LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.