Difference between revisions of "OOP Class9"
(→Sessions) |
|||
Line 76: | Line 76: | ||
Dog examples | Dog examples | ||
+ | |||
+ | The first page creates a dog objects and stores it as a session variable. | ||
+ | |||
+ | http://iam.colum.edu/oop/classsource/class9/dogsession/dog.aspx [http://iam.colum.edu/oop/gbrowser.php?file=/classsource/class9/dogsession/dog.aspx dog.aspx - source] | ||
+ | |||
+ | http://iam.colum.edu/oop/classsource/class9/dogsession/dog_session_Page1.aspx [http://iam.colum.edu/oop/gbrowser.php?file=/classsource/class9/dogsession/dog_session_Page1.aspx dog_session_Page1.aspx - source] | ||
+ | |||
+ | http://iam.colum.edu/oop/classsource/class9/dogsession/dog_session_Page2.aspx [http://iam.colum.edu/oop/gbrowser.php?file=/classsource/class9/dogsession/dog_session_Page2.aspx dog_session_Page2.aspx - source] | ||
+ | |||
+ | http://iam.colum.edu/oop/classsource/class9/dogsession/dog_session_Page3.aspx [http://iam.colum.edu/oop/gbrowser.php?file=/classsource/class9/dogsession/dog_session_Page3.aspx dog_session_Page3.aspx - source] | ||
==Delgates== | ==Delgates== |
Revision as of 00:19, 29 March 2006
Contents
HTML Forms
Http is a staless protocol. There is mo mechanism built in to the protocol that allows the server to remeber clients or requests. An http simply responds to http verbs GET, POST, PUT, DEL, TRACE etc. contained in RFC 2068 HTTP/1.1
Old html forms post information using forms in 2 ways with a get or a post http request.
Get
- Get send information to the server using the URI. Limited to 1024 character in some browsers and servers.
Example http://iam.colum.edu/oop/classsource/class9/simpleGet.html simpleGet.html - source
The simpleGet.html pages form has the action of 'simpleGet.aspx' this mean that when the form is submitted the browser will request the 'simpleGet.aspx' with whatever parameters are in the form. Since the method = get theese prarmenters will show up are query string parameters
URI and querystring parameters
URI - Universal Resource Identifier http://src.doc.ic.ac.uk/computing/internet/rfc/rfc1630.txt RFC1630
Http URI
Protcol | Host | Port | Path | File | Fragment identifier | Querystring |
---|---|---|---|---|---|---|
http:// | info.cern.ch | :8000 | /imaginary/test/ | file.html | #link | ?test=yes |