Free web hosts - CHAPTER 5 PERMUTATIONS PATTERN E B V
CHAPTER 5 PERMUTATIONS PATTERN E B V N Figure 5-10. Illustration of URL rewriting in action Using the Accept Header on the Client Side By default, all browsers send the content that they are interested in. It is possible when using the XMLHttpRequesttype to specify the Accept HTTP header, as illustrated by the following source code example: var xmlhttp = FactoryXMLHttpRequest() xmlhttp.open( “GET”, “/url”, true) xmlhttp.setRequestHeader( “Accept”, “application/xml”) The method setRequestHeader is used to specify the Accept HTTP header. Based on the HTTP header, the server can generate the proper source code and send it to the client. An Example Shopping Cart Application Back in Figure 5-9, you saw the second URL, /bankaccount/maryjane, which is rewritten, performs an authorization, and references the bank account resource of maryjane. This sort of scenario
If you are looking for affordable and reliable webhost to host and run your business application visit our ftp web hosting services.