TAILIEUCHUNG - GET vs. POST

Có hai cách để truyền dữ liệu giữa máy chủ và Flash khi làm việc với kịch bản phía máy chủ: thông qua GET hoặc POST qua. Hai kỹ thuật cho việc gửi các biến và các giá trị liên quan của họ thường xuyên được sử dụng trong các trang HTML và Flash bất cứ khi nào dữ liệu đã nhập vào một biểu mẫu được gửi tới một máy chủ để được xử lý. (Chúng tôi sẽ thảo luận về các phương pháp cụ thể trong các bài tập sau đây) Khi bạn gửi các biến bằng cách. | GET vs. POST There are two ways to transfer data between the server and Flash when working with server-side scripts via GET or via POST. These two techniques for sending variables and their associated values are used in regular HTML pages and in Flash whenever data entered into a form is sent to a server to be processed. We ll discuss the specific methods in the following exercises. When you send variables using GET you re simply concatenating variable name value pairs onto the URL itself. For example if you wanted to use GET to send my name and email address to a script located on the page you d specify the URL as follows http name jobe email jobe@ The question mark tells the script and server that everything that follows comprises variables. Although GET is easier to use than POST it won t work for every situation because it has a 1024-character limit. Now let s take a look at how POST is used. When variable data is sent using POST that data is contained within the header of the HTTP request which means you cannot see it being transferred. This gives you an added layer of security since the variables are not easily read. Because POST doesn t have a character limit it provides a slightly more versatile way of sending variable data. We ll return to the topic of GET and POST in the exercise that accompanies the next section Using the LoadVars Class. NOTE Because GET and POST are not always easily interchangeable most server-side scripts are programmed to accept variables via either GET or POST but usually not .

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.