previous | start | next

More on the GET Request

HTTP/1.0 permits the GET request (and other HTTP request types, see later) to additionally send a series of optional Request Headers along with the request. For example, here's a typical request to ironbark, snarfed from the local network (with some cosmetic editing):
GET /index.html HTTP/1.0
Accept: image/gif, image/jpeg, */*
Host: ironbark.bendigo.latrobe.edu.au
User-Agent: Mozilla/4.0 (compatible; MSIE 5.12; Mac_PowerPC)
Referer: http://bindi.bendigo.latrobe.edu.au/index.html
The request headers are terminated with a blank line -- hence the need for two newlines, as seen in the first slide of today's lecture. It's also possible for the request to contain a "message body", just like a response message -- we defer discussion of this until later.
 
Lecture 05: Applications #3.1: HTML and HTTP Basics Copyright © 2004 P.Scott, La Trobe University Bendigo.



previous | start | next