PostForm

<!DOCTYPE HTML PUBLIC -//W3C//DTD HTML 4.0 Transitional//EN <HTML <HEAD <TITLEA Sample FORM using POST</TITLE </HEAD <BODY BGCOLORFDF5E6 <H1 ALIGNCENTERA Sample FORM using POST</H1 <FORM ACTION/servlet/hall.ShowParametersMETHODPOST Item Number: <INPUT TYPETEXTNAMEitemNum<BR Quantity: <INPUT TYPETEXTNAMEquantity<BR Price Each: <INPUT TYPETEXTNAMEpriceVALUE$<BR <HR First Name: <INPUT TYPETEXTNAMEfirstName<BR Last Name: <INPUT TYPETEXTNAMElastName<BR Middle Initial: <INPUT TYPETEXTNAMEinitial<BR Shipping Address: <TEXTAREA NAMEaddressROWS=3 COLS=40</TEXTAREA<BR Credit Card:<BR <INPUT TYPERADIONAMEcardTypeVALUEVisaVisa<BR <INPUT TYPERADIONAMEcardTypeVALUEMaster CardMaster Card<BR <INPUT TYPERADIONAMEcardTypeVALUEAmexAmerican Express<BR <INPUT TYPERADIONAMEcardTypeVALUEDiscoverDiscover<BR <INPUT TYPERADIONAMEcardTypeVALUEJava SmartCardJava SmartCard<BR Credit Card Number: <INPUT TYPEPASSWORDNAMEcardNum<BR Repeat Credit Card Number: <INPUT TYPEPASSWORDNAMEcardNum<BR<BR <CENTER <INPUT TYPESUBMITVALUESubmit Order </CENTER </FORM </BODY </HTML

An Overview of Request Headers When an HTTP client (e.g. a browser) sends a request, it is required to supply a request line (usually GET or POST ). If it wants to, it can also send a number of headers, all of which are optional except for Content-Length , which is required only for POST requests. Here are the most common headers:
  • Accept The MIME types the browser prefers.
  • Accept-Charset The character set the browser expects.
  • Accept-Encoding The types of data encodings (such as gzip) the browser knows how to decode. Servlets can explicitly check for gzip support and return gzipped HTML pages to browsers that support them, setting the Content-Encoding response header to indicate that they are gzipped. In many cases, this can reduce page download times by a factor of five or ten.
  • Accept-Language The language the browser is expecting, in case the server has versions in more than one language.
  • Authorization Authorization info, usually in response to a WWW-Authenticate header from the server.
  • Connection Use persistent connection? If a servlet gets a Keep-Alive value here, or gets a request line indicating HTTP 1.1 (where persistent connections are the ), it may be able to take advantage of persistent connections, saving significant time for Web pages that include several small pieces (images or applet classes). To do this, it needs to send a Content-Length header in the response , which is most easily accomplished by writing into a ByteArrayOutputStream , then looking up the size just before writing it out.
  • Content-Length (for POST messages, how much data is attached)
  • Cookie (one of the most important headers; see separate section in this tutorial on handling cookies)
  • From (email address of requester; only used by Web spiders and other custom clients, not by browsers)
  • Host (host and port as listed in the original URL)
  • If-Modified-Since (only return documents newer than this, otherwise send a 304 "Not Modifiedresponse)
  • Pragma (the no-cache value indicates that the server should return a fresh document, even if it is a proxy with a local copy)
  • Referer (the URL of the page containing the link the user followed to get to current page)
  • User-Agent (type of browser, useful if servlet is returning browser-specific content)
  • UA-Pixels , UA-Color , UA-OS , UA-CPU (nonstandard headers sent by some Internet Explorer versions, indicating screen size, color depth, operating system, and cpu type used by the browser's system)

 

 

Bhopal news
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100

freelance web designer india ecommerce web developer | Ecommerce web design, software developer india | Web hosting India Windows hosting | India web hosting Windows hosting India | India software developer | web designer india