TAILIEUCHUNG - Pro PHP Security phần 4

Sau đó, mảng dòng siêu dữ liệu là bán phá giá. Phần này (ở đây là sửa đổi một ít để cho đơn giản, một danh sách đầy đủ các thuộc tính siêu dữ liệu là ) bao gồm các loại của dòng suối, chế độ (đọc / ghi trong trường hợp này) , : khi các yếu tố không, các nội dung từ các xsl: nếu không thì yếu tố, nếu có, là instantiated. | CHAPTER 7 SECURING NETWORK CONNECTIONS I SSL 131 Accept-Ranges bytes Content-Length 141 Connection close Content-Type text html charset ISO-8859-1 html head meta http-equiv refresh content 0 url xampp head body bgcolor ffffff p Hello world. p body html Metadata Array stream_type tcp_socket ssl mode r unread_bytes 0 timed_out blocked 1 eof 1 After the initialization message the dump of the stream begins with the raw HTTP response from the server the one-line header setting the content type and then the entity-body of the response. Then the stream metadata array is dumped. This section here edited slightly for simplicity a complete list of metadata properties is at http stream-get-meta-data includes the type of the stream the mode read write in this case and the number of bytes that were not read. You checked the timed_out property in your script to determine whether the connection had timed out if it had this would have been set to 1. The blocked property is a bit obscure but it works like this when a stream is in blocking mode any PHP function that reads from the stream is going to wait for some response from the server. While this is convenient there are times when you may want to use a loop that checks for output on the stream while also doing other things in the background. This can be handy when requesting information from slow servers or when requesting large amounts of data over a slow connection because it allows you to use your own logic to determine when the connection has timed out. You can use the stream_set_blocking function to change the blocked property of a stream. Finally the eof property tells you in this case somewhat redundantly since you know already that there were no unread bytes that you successfully reached the end of the target file. Caution Microsoft s IIS violates the SSL protocol by failing to send a close_notify indicator before closing the connection. This is indicated by PHP s reporting an SSL Fatal Protocol Error at the end .

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.