HTML和HTTP的'GET‘和'POST’方法定义是否不同?这是我能收集到的-
HTTP-GET - Requests data from a specified resource
HTTP-POST - Submits data to be processed to a specified resource
和
HTML-GET - form submit method, data appended to URL
HTML-POST - form submit method, data enclosed in HTTP request
HTTP谓词是否与HTML表单提交方法
我想完全理解如何在静态和动态文件中使用相对和绝对url地址。
~ :
/ :
.. : in a relative URL indicates the parent directory
. : refers to the current directory
/ : always replaces the entire pathname of the base URL
// : always replaces everything from the hostname onwards
当您在没有虚拟目录的情况下工作时,这个示例很简单。但我正在处理虚拟目录。
Relative URI
以下代码在IE8和Safari4中可以正常工作,但在Firefox3.6和Chrome中则不能。所有的浏览器都在Windows上。
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; char
我需要:
添加www,所以用户将:
- type `https://example.com/test.html`
- see in browser `https://www.example.com/test.html`
- get file from `example.com/test.html`
添加http -> https重定向,因此用户将:
- type `http://www.example.com/test.html`
- see in browser `https://www.example.com/test.html`
- get file from `example.c