Section 5.15. Web servers unencode POST data


5.15. Web servers unencode POST data

Once a web server gets a POST request, it figures out what type of data it has received, and then passes that information on to the program in the request URL.

 placeOrder.php  Since this is a POST request, there's no data in the actual request URL. Break Neck serverThe server opens up the POST request, and decodes the request data... phone=(214) 290-8762The server takes care of taking the data from the request, and turning it into something a server-side program can use. address=Mary Jenkins         7081 Teakwood #24C         Dallas, Texas 75182 order=1 Large Cheese Pizza       1 order of Breadsticks       1 2-liter bottle of Diet Coke ...which, for Break Neck, is the customer's information and order... placeOrder.php...and passes the data on to the program in the original request URL. 




Head Rush Ajax
Head Rush Ajax (Head First)
ISBN: 0596102259
EAN: 2147483647
Year: 2004
Pages: 241

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net