Siêu thị PDFTải ngay đi em, trời tối mất

Thư viện tri thức trực tuyến

Kho tài liệu với 50,000+ tài liệu học thuật

© 2023 Siêu thị PDF - Kho tài liệu học thuật hàng đầu Việt Nam

Tài liệu Web Client Programming with Perl-Chapter 3: Learning HTTP- P2 pdf
MIỄN PHÍ
Số trang
27
Kích thước
106.5 KB
Định dạng
PDF
Lượt xem
1725

Tài liệu Web Client Programming with Perl-Chapter 3: Learning HTTP- P2 pdf

Nội dung xem thử

Mô tả chi tiết

Chapter 3: Learning HTTP- P2

PUT: Store the Entity-Body at the URL

When a client uses the PUT method, it requests that the included entity-body

should be stored on the server at the requested URL. With HTML editors, it

is possible to publish documents onto the server with a PUT method.

Revisiting the PUT example in Chapter 2, we see an HTML editor with

some sample HTML in the editor (see Figure 3-5).

Figure 3-5. HTML editor

The user saves the document in C:/temp/example.html and publishes it to

http://publish.ora.com/ (see Figure 3-6).

Figure 3-6. Publishing the document

When the user presses the OK button, the client contacts publish.ora.com at

port 80 and then sends:

PUT /example.html HTTP/1.0

Connection: Keep-Alive

User-Agent: Mozilla/3.0Gold (WinNT; I)

Pragma: no-cache

Host: publish.ora.com

Tải ngay đi em, còn do dự, trời tối mất!