JSP and JSTL Tutorials - Tutorial Addendum - Authoritative HTTP Acknowledgment Attack Curve
| |
This affiliate describes:
- HTTP Acknowledgment Syntax
- HTTP Acknowledgment Attack Lines
- Controlling Attack Lines
- Viewing Attack Lines
- Header Curve of Changeless Files
- Controlling Attack Curve - Archetype Scripts
- Forcing the Browser to Redirect
- Generating Non-HTML Article Body
- Sending Files for Downloading
HTTP Acknowledgment Syntax
Based on HTTP/1.1 protocol, afterwards accepting and interpreting an HTTP request
from a client, a server haveto responds with an HTTP acknowledgment afterward the syntax
below:
status-line
header-line
...
header-line
entity-body
Note that:
- Response haveto accept one status-line.
- Response can accept zero, one, or some attack lines.
- Response can alone accept aught or one entity-body.
- There is a bare band amid attack curve and the article body.
- Status line, attack line, and bare band haveto be concluded with CRLF ("/r/n") characters.
- Entity physique is the absolute data requested by the applicant request.
- Header curve can be in any order.
Below is a simple HTTP acknowledgment with two attack lines:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 38
Hello world!
HTTP Acknowledgment Attack Lines
HTTP/1.1 acknowledgment attack curve allows the server to passes added information
about the acknowledgment which cannot be placed in the cachet line. Attack curve can be
divided into three groups:
1. Accepted attack lines: Advice about the manual of the absolute acknowledgment
message:
Cache-Control
Affiliation
Date
Pragma
Bivouac
Transfer-Encoding
Advancement
Via
Admonishing
(Continued on next part...)
|
header, response, lines, status, entity, , header lines, http response, response header, entity body, line header, status line, http response header, response header lines, status line header, controlling http response, notes controlling http, tutorials tutorial notes, tutorial notes controlling, jstl tutorials tutorial, |
Also see ...
i(Continued from antecedent part...)/i2. Acknowledgment attack lines: Advice about the response: Accept Ranges Age ETag Area
i(Continued from antecedent part...)/iOnce the Web browser finishes processing the article body, you can get some bound informationfrom the attack lines. For example, you can bang the appropriate abrasion button
i(Continued from antecedent part...)/i2. Command: "php HttpRequestGet.php /dot.gif" gives us: HTTP/1.1 200 OKServer: Microsoft IIS/5.1Date: Sun, 13 Nov 2005 04:40:17 GMTCon
i(Continued from antecedent part...)/iHere is the output: HTTP/1.1 200 OKServer: Microsoft IIS/5.1Date: Sat, 19 Nov 2005 02:28:32 GMTContent Type: text/xml;charset=utf 8br
i(Continued from antecedent part...)/iGenerating Non HTML Article BodySometimes, you may wish to forward aback advice in the article physique that are not in the HTML
i(Continued from antecedent part...)/iSending Files for DownloadingIn the antecedent section, the requested book is delivered to the browser for aperture immediately. p
This affiliate describes:What is a session.How use affair in a PHP script.A affair analysis with 3 scripts.How affair ID can be managed after
i(Continued from antecedent part...)/iSessionPage2.php: <?php SessionPage2.php Absorb (c) 2002 by Dr. Yang session_start(); $quantity = $_SESSION; $pr
i(Continued from antecedent part...)/iHere is my sample Perl program, reg_client.pl, advised to plan with my antecedent JSP allotment application: reg_client.pl Absorb (c) 20
What is a Custom Tag?Custom Tag is an activity tag authentic by the user through the JSP tag addendum facility. It can be acclimated to move JSP page assembly logics and advi