Showing posts with label http. Show all posts
Showing posts with label http. Show all posts

Thursday, July 31, 2008

Web Page Redirection

<head>
<meta http-equiv="Refresh" content="5; URL=reform.html" />

The above code causes the browser to load the page "reform.html" 5 seconds after loading the page that contained the code. If the URL=page.html is omitted then the browser reloads the page containing the code every 5 seconds.
The above code also works with pages in framesets or iframes.
Pay special attention to the value of the attribute content . Examples:
content="5"> - reloads the page every 5 seconds
content="5; URL=reform.html"- loads the page reform.html after 5 seconds
In the second example the value of content is the number of seconds, a semi-colon, followed by URL=reform.html".

Saturday, July 5, 2008

post vs get

Get requests have a limit of 2048 characters for Internet Explorer. The get request consists of the URL of the application and the form data.
When security of the data is important (eg. passwords) post is more secure. The data sent by get is visible in the URL and therefore can be viewed in the browser history or in bookmarks.
Since transmission is a single-step process in get, it is faster than post.
Get results can be bookmarked and get applications can be invoked from links (the <a> tag).

Tuesday, July 1, 2008

URL Encodings

URLs use the following encoding for characters that are not numbers or letters:

Character Description Usage Encoding
space %20
; semicolon reserved %3b
/ slash reserved %2f
? question mark reserved %3f
: colon reserved %3a
@ at sign reserved %40
= equals sign reserved %3d
& ampersand reserved %26
< Less-than sign unsafe %3c
> Greater-than sign unsafe %3e
“ double quote unsafe %22
# hash symbol unsafe %23
% percent unsafe %25
{ left curly brace unsafe %7b
} right curly brace unsafe %7d
| vertical bar unsafe %7c
\ backslash unsafe %5c
^ caret unsafe %5e
~ tilde unsafe %7e
[ left square bracket unsafe %5b
] right square bracket unsafe %5d
' single quote unsafe %60