Skip to Main Content
Head Rush Ajax
book

Head Rush Ajax

by Brett McLaughlin
March 2006
Beginner to intermediate content levelBeginner to intermediate
448 pages
13h 33m
English
O'Reilly Media, Inc.
Content preview from Head Rush Ajax
you’re on your way 4
297
post requests
<?php
require(‘lib.php’);
function go() {
$myVar = ...
return ...
}
?>
Web server
placeOrder.php? I have the
customer’s address, phone number,
and order. I’m sending them over
via POST, OK?
POST
data
In a POST request, the
data for the server is
encoded and sent along
with the request, but is
separate from the URL.
The server gets the
request, and unencodes
the POST data.
placeOrder.php
Data sent with a POST
request isn’t part of the
request URL.
POST requests send data separate from the request URL
In a POST request, data that has to be sent to the server is kept separate
from the URL, and there’s no length restriction:
What do you think happens to the data in the
GET request if the URL gets too long for a web
browser or a web server to handle?
brain
power
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Reinventing the Organization for GenAI and LLMs

Reinventing the Organization for GenAI and LLMs

Ethan Mollick
Head First Ajax

Head First Ajax

Rebecca M. Riordan

Publisher Resources

ISBN: 0596102259Errata PageSupplemental Content