Home > Archive > ASP .NET > June 2008 > A question on the HTML verbs GET and POST
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
A question on the HTML verbs GET and POST
|
|
|
| Dear people,
I am studying for 70-528 and in the self paced training kit written by Glenn
Johnson at chapter one I find a list of HTML verbs and their description. If
possible I would like to submit a posting here to clearify a few things I do
not understand.
<text in the book>
GET : Gets a URL from the server. A GET request for a specific URL,
say, /test.htm, retrieves the test.htm file. Data retrieved using this verb
is typically cached by the browser. GET also works with collections, such as
those in directories that contain collections of files. If you request a
directory, the server can be configured to return a default file, such as
index.html, that may be representative of the directory.
</text in the book>
I do not understand the part: GET also works with collections, such as
those in directories that contain collections of files.
What does it mean? GET can transfer a bunch of files from the server to the
browser somehow? If that's it, what is this used for, since I have never
seen it.
<text in the book>
POST : Used to create a new, dynamically named resource. Data retrieved
using this verb is typically not cached.
</text in the book>
I don't get this. I know POST just from posting a form and its content. What
is the 'dynamically named resource'?
| |
| ThatsIT.net.au 2008-06-13, 7:35 pm |
|
"Marc" <m,wentink_remove_this_@nki.nl> wrote in message
news:uxDixgVzIHA.6096@TK2MSFTNGP06.phx.gbl...
> Dear people,
>
> I am studying for 70-528 and in the self paced training kit written by
> Glenn Johnson at chapter one I find a list of HTML verbs and their
> description. If possible I would like to submit a posting here to clearify
> a few things I do not understand.
>
> <text in the book>
> GET : Gets a URL from the server. A GET request for a specific URL,
> say, /test.htm, retrieves the test.htm file. Data retrieved using this
> verb is typically cached by the browser. GET also works with collections,
> such as those in directories that contain collections of files. If you
> request a directory, the server can be configured to return a default
> file, such as index.html, that may be representative of the directory.
> </text in the book>
i think the writer likes to overdue the jargon. inshort he saying that you
can get the page
http:/microsft.com/default.aspx
but calling the directory
http:/microsft.com/
>
>
> I do not understand the part: GET also works with collections, such as
> those in directories that contain collections of files.
>
> What does it mean? GET can transfer a bunch of files from the server to
> the browser somehow? If that's it, what is this used for, since I have
> never seen it.
>
> <text in the book>
> POST : Used to create a new, dynamically named resource. Data retrieved
> using this verb is typically not cached.
> </text in the book>
>
> I don't get this. I know POST just from posting a form and its content.
> What is the 'dynamically named resource'?
>
not sure, more jargon I think, I don't think you have a very good book, a
good book explain things, not just gives them fancy names.
| |
|
|
"ThatsIT.net.au" <me@work> wrote in
> not sure, more jargon I think, I don't think you have a very good book, a
> good book explain things, not just gives them fancy names.
I think you're right there. It's a book for an exam. I have other books with
better content, which I also use, but I use this one since it just covers
all the exam material.
Thanks for the comments.
| |
| bruce barker 2008-06-13, 7:35 pm |
| for complete inforation read: http://www.rfc-editor.org/rfc/rfc2616.txt
in summary a http request has three parts:
1) a request verb and uri
2) a list of headers
3) in the case of a post, content
there are serveral verbs (here are the most common)
HEAD - retrieve just the headers for a uri
GET - retrieve headers and content for a uri
POST - retrieve headers and content for a uri but content is included (the
content-type header defines the format of the content) following the request
headers
a GET uri request can be for a directory (with IIS enable directory
browsing), in which case the webserver shoudl return a list of files. the
format is not defined, but usually is a list of links.
don't confuse this with IIS defualt documnent, this is handled by the
webserver sending a redirect toanother URI.
with webdav, the webserver can be a file server. to create a document, you
just post it.
-- bruce (sqlwork.com)
"Marc" wrote:
> Dear people,
>
> I am studying for 70-528 and in the self paced training kit written by Glenn
> Johnson at chapter one I find a list of HTML verbs and their description. If
> possible I would like to submit a posting here to clearify a few things I do
> not understand.
>
> <text in the book>
> GET : Gets a URL from the server. A GET request for a specific URL,
> say, /test.htm, retrieves the test.htm file. Data retrieved using this verb
> is typically cached by the browser. GET also works with collections, such as
> those in directories that contain collections of files. If you request a
> directory, the server can be configured to return a default file, such as
> index.html, that may be representative of the directory.
> </text in the book>
>
>
> I do not understand the part: GET also works with collections, such as
> those in directories that contain collections of files.
>
> What does it mean? GET can transfer a bunch of files from the server to the
> browser somehow? If that's it, what is this used for, since I have never
> seen it.
>
> <text in the book>
> POST : Used to create a new, dynamically named resource. Data retrieved
> using this verb is typically not cached.
> </text in the book>
>
> I don't get this. I know POST just from posting a form and its content. What
> is the 'dynamically named resource'?
>
>
>
|
|
|
|
|