134
Request
object
Request URL
Your JavaScript request
object sends a request
to the web server.
The request URL goes to the
server, and tells the server
what script or servlet or
program to run.
The server gets ready to
pass on the request and any
request data to a program.
1
Your request object sends a
request to a web server.
ready states and status codes
Request
object
PHP script
?
Unknown resource
Request URL
2
The web server tries to locate
the program in the request URL.
The server is sending a lot of information back in its response...
maybe more than you realized. Here’s a look at how the server
returns both a ready state and a status code:
Servers return a ready state and a status code
The server gures out what
program is requested by
looking at the request URL.
Most of the time, the
program in the request URL
is a script or program running
on the server.
Sometimes, the server
has a problem nding a
program, or getting access
to a particular resource.